code: def get_package_metadata(self):
          
          # Handle reforms
          if self.baseline:
              return self.baseline.get_package_metadata()
  
          fallback_metadata = {
              'name': self.__class__.__name__,
              'version': '',
              'repository_url': '',
              'location': '',
              }
  
          module = inspect.getmodule(self)
          if not module.__package__:
              return fallback_metadata
          package_name = module.__package__.split('.')[0]
          try:
              distribution = pkg_resources.get_distribution(package_name)
          except pkg_resources.DistributionNotFound:
              return fallback_metadata
  
          location = inspect.getsourcefile(module).split(package_name)[0].rstrip('/')
  
          home_page_metadatas = [
              metadata.split(':', 1)[1].strip(' ')
              for metadata in distribution._get_metadata(distribution.PKG_INFO) if 'Home-page' in metadata
              ]
          repository_url = home_page_metadatas[0] if home_page_metadatas else ''
          return {
              'name': distribution.key,
              'version': distribution.version,
              'repository_url': repository_url,
              'location': location,
              }
docs: Gets metatada relative to the country package the tax and benefit system is built from.
  
              :returns: Country package metadata
              :rtype: dict
  
              Example:
  
              >>> tax_benefit_system.get_package_metadata()
              >>> {
              >>>    'location': '/path/to/dir/containing/package',
              >>>    'name': 'openfisca-france',
              >>>    'repository_url': 'https://github.com/openfisca/openfisca-france',
              >>>    'version': '17.2.0'
              >>>    }