code: def register_partitioning_manager(name):
      """Decorator responsible for registering partition manager in the partition manager registry.
  
      Parameters
      ----------
      name: str
           Name of the new partition manager.
  
      Example
      -------
      >>>@register_partitioning_manager("NewManagerName")
      >>>class NewManagerName(PartitionDataManager):
      >>>... pass
      """
  
      def insert_in_registry(class_handle):
          """Checks if partition manager already exists and if not registers it."""
          if name in PARTITION_MANAGER_REGISTRY.keys():
              msg = "Partitioning Manager with name {} already exists!".format(
                  name
              )
              logger.error(msg)
              raise Exception(msg)
  
          PARTITION_MANAGER_REGISTRY[name] = class_handle
          class_handle.name = name
          return class_handle
  
      return insert_in_registry
  
imports: import abc
  import glob
  import logging
  import os
  import shelve
  import shutil
  import tempfile
  from datetime import datetime
  import numpy
  import tensorflow
  from .graph_partitioner import PARTITION_ALGO_REGISTRY, AbstractGraphPartitioner
label_desc: Use image node_id 1 for calling a global function with example usage: register_partitioning_manager(name) and returns: insert_in_registry, class_handle