parameters: (self, *args)
docstring: Register python objects for checkpointing.
  
          Parameters
          ----------
          args : list of :obj:`str`
              Names of python objects to be registered for checkpointing.
docstring_summary: Register python objects for checkpointing.
docstring_tokens: Register python objects for checkpointing .
function: def register(self, *args):
          """Register python objects for checkpointing.
  
          Parameters
          ----------
          args : list of :obj:`str`
              Names of python objects to be registered for checkpointing.
  
          """
          for a in args:
              if not isinstance(a, str):
                  raise ValueError(
                      "The object that should be checkpointed is identified with its name given as a string.")
  
              # if not a in dir(self.calling_module):
              if not self.__hasattr_submodule(self.calling_module, a):
                  raise KeyError(
                      f"The given object '{a}' was not found in the current scope.")
  
              if a in self.checkpoint_objects:
                  raise KeyError(
                      f"The given object '{a}' is already registered for checkpointing.")
  
              self.checkpoint_objects.append(a)
function_tokens: def register ( self , * args ) : for a in args : if not isinstance ( a , str ) : raise ValueError ( "The object that should be checkpointed is identified with its name given as a string." ) # if not a in dir(self.calling_module): if not self . __hasattr_submodule ( self . calling_module , a ) : raise KeyError ( f"The given object '{a}' was not found in the current scope." ) if a in self . checkpoint_objects : raise KeyError ( f"The given object '{a}' is already registered for checkpointing." ) self . checkpoint_objects . append ( a )