code: def _GetPkgResources(package_name, filepath):
    
    requirement = pkg_resources.Requirement.parse(package_name)
    try:
      return pkg_resources.resource_filename(requirement, filepath)
    except pkg_resources.DistributionNotFound:
      # It may be that the working set is not in sync (e.g. if sys.path was
      # manipulated). Try to reload it just in case.
      pkg_resources.working_set = pkg_resources.WorkingSet()
      try:
        return pkg_resources.resource_filename(requirement, filepath)
      except pkg_resources.DistributionNotFound:
        logging.error("Distribution %s not found. Is it installed?", package_name)
        return None
docs: A wrapper for the `pkg_resource.resource_filename` function.