code: def like_url(text: str) -> bool:
      # We're looking for things that function in text like URLs. So, valid URL
      # or not, anything they say http:// is going to be good.
      if text.startswith("http://") or text.startswith("https://"):
          return True
      elif text.startswith("www.") and len(text) >= 5:
          return True
      if text[0] == "." or text[-1] == ".":
          return False
      if "@" in text:
          # prevent matches on e-mail addresses – check after splitting the text
          # to still allow URLs containing an '@' character (see #1715)
          return False
      for i in range(len(text)):
          if text[i] == ".":
              break
      else:
          return False
      tld = text.rsplit(".", 1)[1].split(":", 1)[0]
      if tld.endswith("/"):
          return True
      if tld.isalpha() and tld in _tlds:
          return True
      if URL_MATCH(text):
          return True
      return False
  
imports: import re
  import unicodedata
  from typing import Set
  from ..None import attrs
  from .tokenizer_exceptions import URL_MATCH
label_desc: Use image node_id 10 for calling a global function with example usage: like_url(text) and returns: False, True, False, False, False, True, True, True, True