code: def register_partitioning_strategy(name, manager):
      """Decorator responsible for registering partition in the partition registry.
  
      Parameters
      ----------
      name: str
           Name of the new partition strategy.
      manager: str
           Name of the partitioning manager that will handle this partitioning strategy during training.
  
      Example
      -------
      >>>@register_partitioning_strategy("NewStrategyName")
      >>>class NewPartitionStrategy(AbstractGraphPartitioner):
      >>>... pass
      """
  
      def insert_in_registry(class_handle):
          """Checks if partition already exists and if not registers it."""
          if name in PARTITION_ALGO_REGISTRY.keys():
              msg = "Partitioning Strategy with name {} already exists!".format(
                  name
              )
              logger.error(msg)
              raise Exception(msg)
  
          PARTITION_ALGO_REGISTRY[name] = class_handle
          class_handle.name = name
          class_handle.manager = manager
  
          return class_handle
  
      return insert_in_registry
  
imports: import logging
  import os
  import shelve
  import tempfile
  from abc import ABC
  from datetime import datetime
  import numpy
  from ampligraph.utils.profiling import timing_and_memory
  from .graph_data_loader import GraphDataLoader
label_desc: Use image node_id 1 for calling a global function with example usage: register_partitioning_strategy(name, manager) and returns: insert_in_registry, class_handle