code: def run(self, module, options):
          
          logger.debug("Running halstead harvester")
          results = {}
          for filename, details in dict(self.harvester.results).items():
              results[filename] = {}
              for instance in details:
                  if isinstance(instance, list):
                      for item in instance:
                          function, report = item
                          results[filename][function] = self._report_to_dict(report)
                  else:
                      if isinstance(instance, str) and instance == "error":
                          logger.warning(
                              f"Failed to run Halstead harvester on {filename} : {details['error']}"
                          )
                          continue
                      results[filename] = self._report_to_dict(instance)
          return results
docs: Run the operator.
  
          :param module: The target module path.
          :type  module: ``str``
  
          :param options: Any runtime options.
          :type  options: ``dict``
  
          :return: The operator results.
          :rtype: ``dict``