class_docstr: LocalModuleManager is used to manage PaddleHub's local Module, which supports the installation, uninstallation,
  and search of HubModule. LocalModuleManager is a singleton object related to the path, in other words, when the
  LocalModuleManager object of the same home directory is generated multiple times, the same object is returned.
  
  Args:
      home (str): The directory where PaddleHub modules are stored, the default is ~/.paddlehub/modules
class_docstr_tok: ["LocalModuleManager","is","used","to","manage","PaddleHub","'s","local","Module",",","which","supports","the","installation",",","uninstallation",",","and","search","of","HubModule",".","LocalModuleManager","is","a","singleton","object","related","to","the","path",",","in","other","words",",","when","the","LocalModuleManager","object","of","the","same","home","directory","is","generated","multiple","times",",","the","same","object","is","returned",".","Args",":","home","(","str",")",":","The","directory","where","PaddleHub","modules","are","stored",",","the","default","is","~\/.paddlehub\/modules"]
code: def _install_module_requirements(self, directory: str):
      rfile = os.path.join(directory, "requirements.txt")
      if not os.path.exists(rfile):
          return
  
      file = utils.get_record_file()
      with open(file, "a") as _stream:
          with log.logger.processing(
              "Installing dependent packages from {}".format(rfile)
          ):
              result = pypi.install_from_file(
                  rfile, ostream=_stream, estream=_stream
              )
              if result:
                  log.logger.info(
                      "Successfully installed dependent packages."
                  )
              else:
                  log.logger.warning(
                      "Some errors occurred while installing dependent packages. Detailed error information can be found in the {}.".format(
                          file
                      )
                  )
  
imports: import os
  import shutil
  import sys
  from collections import OrderedDict
  from typing import List
  import filelock
  from paddlehub.env import MODULE_HOME, TMP_HOME
  from paddlehub.module.module import Module
  from paddlehub.server import module_server
  from paddlehub.utils import xarfile, log, utils, pypi
label_desc: Use image node_id 14 for calling the LocalModuleManager obj's underlying member method code with example usage: obj._install_module_requirements(directory) without return types