code: def is_url(resource_name: Text) -> bool:
      """Check whether the url specified is a well formed one.
  
      Args:
          resource_name: Remote URL to validate
  
      Returns:
          `True` if valid, otherwise `False`.
      """
      from urllib import parse
  
      try:
          result = parse.urlparse(resource_name)
      except Exception:
          return False
  
      if result.scheme == "file":
          return bool(result.path)
  
      return bool(
          result.scheme in ["http", "https", "ftp", "ftps"]
          and result.netloc
      )
  
imports: from typing import Any, Text
  import rasa.shared.utils.io
label_desc: Use image node_id 3 for calling a global function with example usage: is_url(resource_name) and returns: bool, bool, False