class_docstr: This is a registry class used to register classes and modules so that a universal
  object builder can be enabled.
  
  Args:
      name (str): The name of the registry .
      third_party_library (list, optional):
          List of third party libraries which are used in the initialization of the register module.
docstr: Searches for a module with name `module_name` and returns a boolean value indicating
  whether the module has been registered directly or as third party modules before.
  
  Args:
      module_name (str): The name of the module to be searched for.
  Returns:
      bool: A boolean value indicating whether the module has been registered directly or
      as third party modules before.
docstr_tok: ["Searches","for","a","module","with","name","`","module_name","`","and","returns","a","boolean","value","indicating","whether","the","module","has","been","registered","directly","or","as","third","party","modules","before",".","Args",":","module_name","(","str",")",":","The","name","of","the","module","to","be","searched","for",".","Returns",":","bool",":","A","boolean","value","indicating","whether","the","module","has","been","registered","directly","or","as","third","party","modules","before","."]
code: def has(self, module_name: str):
      """Searches for a module with name `module_name` and returns a boolean value indicating
      whether the module has been registered directly or as third party modules before.
  
      Args:
          module_name (str): The name of the module to be searched for.
      Returns:
          bool: A boolean value indicating whether the module has been registered directly or
          as third party modules before.
      """
      found_flag = module_name in self._registry
  
      if self._third_party_lib:
          for lib in self._third_party_lib:
              if hasattr(lib, module_name):
                  found_flag = True
                  break
  
      return found_flag
  
file_path: colossalai/colossalai/legacy/registry/registry.py
imports: from types import ModuleType
  from typing import List
label_desc: Use image node_id 5 for calling the Registry obj's underlying member method code with example usage: obj.has(module_name) and returns: found_flag