code: def get_urlclass_from (scheme, assume_local_file=False):
      
      if scheme in ("http", "https"):
          klass = httpurl.HttpUrl
      elif scheme == "ftp":
          klass = ftpurl.FtpUrl
      elif scheme == "file":
          klass = fileurl.FileUrl
      elif scheme == "telnet":
          klass = telneturl.TelnetUrl
      elif scheme == "mailto":
          klass = mailtourl.MailtoUrl
      elif scheme in ("nntp", "news", "snews"):
          klass = nntpurl.NntpUrl
      elif scheme == "dns":
          klass = dnsurl.DnsUrl
      elif scheme == "itms-services":
          klass = itmsservicesurl.ItmsServicesUrl
      elif scheme and unknownurl.is_unknown_scheme(scheme):
          klass = unknownurl.UnknownUrl
      elif assume_local_file:
          klass = fileurl.FileUrl
      else:
          klass = unknownurl.UnknownUrl
      return klass
docs: Return checker class for given URL scheme. If the scheme
      cannot be matched and assume_local_file is True, assume a local file.