code: def get_resource_from_handle(self, resource_handle):
          
          repo_type = resource_handle.get("repository_type")
          location = resource_handle.get("location")
          if not (repo_type and location):
              raise ValueError("PackageRepositoryManager requires "
                               "resource_handle objects to have a "
                               "repository_type and location defined")
          path = "%s@%s" % (repo_type, location)
          repo = self.get_repository(path)
          resource = repo.get_resource_from_handle(resource_handle)
          return resource
docs: Get a resource.
  
          Args:
              resource_handle (`ResourceHandle`): Handle of the resource.
  
          Returns:
              `PackageRepositoryResource` instance.