code: def url(value: str) -> bool:
      from urllib.parse import urlparse
  
      try:
          parts = urlparse(value)
          if not parts.scheme:
              _logger.warning(
                  "For maximum compatibility please make sure to include a "
                  "`scheme` prefix in your URL (e.g. 'http://'). "
                  f"Given value: {value}"
              )
              if not (
                  value.startswith("/")
                  or value.startswith("\\")
                  or "@" in value
              ):
                  parts = urlparse(f"http://{value}")
  
          return bool(parts.scheme and parts.netloc)
      except Exception:
          return False
  
imports: import logging
  import os
  import re
  import string
  import typing
  from itertools import chain
label_desc: Use image node_id 7 for calling a global function with example usage: url(value) and returns: bool, False