import six


def _IsUrl(resource_handle):
  """Returns true if the passed resource_handle is a url."""
  parsed = six.moves.urllib.parse.urlparse(resource_handle)
  return parsed.scheme and parsed.netloc