code: def RegisterPartitionResolver(self, database_link, partition_resolver):
          
          if not database_link:
              raise ValueError("database_link is None or empty.")
  
          if partition_resolver is None:
              raise ValueError("partition_resolver is None.")
  
          self.partition_resolvers = {base.TrimBeginningAndEndingSlashes(database_link): partition_resolver}
docs: Registers the partition resolver associated with the database link
  
          :param str database_link:
              Database Self Link or ID based link.
          :param object partition_resolver:
              An instance of PartitionResolver.