code: def create_repository(cls, repository_data):
          
          location = "memory{%s}" % hex(id(repository_data))
          resource_pool = ResourcePool(cache_size=None)
          repo = MemoryPackageRepository(location, resource_pool)
          repo.data = repository_data
          return repo
docs: Create a standalone, in-memory repository.
  
          Using this function bypasses the `package_repository_manager` singleton.
          This is usually desired however, since in-memory repositories are for
          temporarily storing programmatically created packages, which we do not
          want to cache and that do not persist.
  
          Args:
              repository_data (dict): Repository data, see class docstring.
  
          Returns:
              `MemoryPackageRepository` object.