code: def register(cls, package_type):
      
      if not issubclass(package_type, cls):
        raise TypeError('package_type must be a subclass of Package.')
      cls._REGISTRY.add(package_type)
docs: Register a concrete implementation of a Package to be recognized by pex.