def location(self):
"""Get Location instance where this channel is located.
Can also be used on remote channels.
"""
if self._location:
return copy.copy(self._location)
return self._scheduler.location