code: def get_package_versions(self, name):
          
          package_data = self._packages.get(name)
          versions = []
  
          if package_data:
              versions = sort_versions(list(package_data.get('versions', [])))
  
          return versions
docs: Gives all the compatible package canonical name
  
          name : str
              Name of the package