code: def GetPartitionResolver(self, database_link):
          
          if not database_link:
              raise ValueError("database_link is None or empty.")
  
          return self.partition_resolvers.get(base.TrimBeginningAndEndingSlashes(database_link))
docs: Gets the partition resolver associated with the database link
  
          :param str database_link:
              Database self link or ID based link.
  
          :return:
              An instance of PartitionResolver.
          :rtype: object