code: def local_is_up(self, target):
          
          try:
              check_address(target)
          except ValueError:
              self.logger.warning('Target must be a tuple (IP, port), where IP '
                                  'is a string (i.e. "192.168.0.1") and port is '
                                  'an integer (i.e. 40000). Alternatively '
                                  'target can be a valid UNIX domain socket.')
              return False
  
          if self.skip_tunnel_checkup:  # force tunnel check at this point
              self.skip_tunnel_checkup = False
              self.check_tunnels()
              self.skip_tunnel_checkup = True  # roll it back
          return self.tunnel_is_up.get(target, True)
docs: Check if a tunnel is up (remote target's host is reachable on TCP
          target's port)
  
          Arguments:
              target (tuple):
                  tuple of type (``str``, ``int``) indicating the listen IP
                  address and port
          Return:
              boolean
  
          .. deprecated:: 0.1.0
              Replaced by :meth:`.check_tunnels()` and :attr:`.tunnel_is_up`