code: def is_url_valid(url):
      regex = re.compile(
          r"^(?:http|ftp)s?://"  # http:// or https://
          r"(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?))"  # domain...
          r"(?:/?|[/?]\S+)$",
          re.IGNORECASE,
      )
      return re.match(regex, url) is not None
  
file_path: hf-obelics/obelics/utils/simplification_utils.py
imports: import os
  import re
  from urllib.parse import urlparse
label_desc: Use image node_id 5 for calling a global function with example usage: is_url_valid(url) and returns: unknown