class_docstr: To normalize the repo.
  
  Args:
      uri (`str`):
          The uri of the repo.
class_docstr_tok: ["To","normalize","the","repo",".","Args",":","uri","(","`","str","`",")",":","The","uri","of","the","repo","."]
docstr: Check if the uri matches the format.
  
  Returns:
      (`bool`)
          Check if passed.
  
  Raises:
      (`ValueError`)
          Raise error when false.
docstr_tok: ["Check","if","the","uri","matches","the","format",".","Returns",":","(","`","bool","`",")","Check","if","passed",".","Raises",":","(","`","ValueError","`",")","Raise","error","when","false","."]
code: def check_uri(self) -> bool:
      """
      Check if the uri matches the format.
  
      Returns:
          (`bool`)
              Check if passed.
  
      Raises:
          (`ValueError`)
              Raise error when false.
      """
      result = urlparse(self._uri)
      path = result.path.split("/")
      if len(path) == 1:
          repo = path[0]
      elif len(path) == 2:
          repo = path[1]
      elif len(path) == 3 and path[0] == "":
          repo = path[2]
      else:
          return False
      return self.check_repo(repo)
  
file_path: towhee/towhee/utils/repo_normalize.py
imports: import re
  from urllib.parse import urlparse, parse_qsl, urlsplit
  from typing import NamedTuple
label_desc: Use image node_id 4 for calling the RepoNormalize obj's underlying member method code with example usage: obj.check_uri() and returns: self, False