code: def _filter_modules(self, modules, local_mods):
      candidates = set()
  
      logger.info("Filtering modules ...")
      for module in modules:
          logger.info("Checking module: %s", module)
          if not module:
              continue
          if module.startswith("."):
              self._relative_imports.add(module)
              continue
          if module in local_mods:
              self._maybe_local_mods.add(module)
          module_std_local = is_std_or_local_lib(module)
          if module_std_local is True:
              continue
          if isinstance(module_std_local, str):
              self._local_mods[module] = module_std_local
              continue
          candidates.add(module)
  
      return candidates
  
file_path: clearml/clearml/utilities/pigar/__main__.py
imports: from __future__ import print_function, division, absolute_import
  import os
  import codecs
  import six
  from .reqs import project_import_modules, is_std_or_local_lib, is_base_module
  from .utils import lines_diff
  from .log import logger
  from .modules import ReqsModules
label_desc: Use image node_id 7 for calling the GenerateReqs obj's underlying member method code with example usage: obj._filter_modules(modules, local_mods) and returns: candidates