parameters: (dct, magic_kind, magic_name, func)
docstring: Utility function to store a function as a magic of a specific kind.
  
      Parameters
      ----------
      dct : dict
        A dictionary with 'line' and 'cell' subdicts.
  
      magic_kind : str
        Kind of magic to be stored.
  
      magic_name : str
        Key to store the magic as.
  
      func : function
        Callable object to store.
docstring_summary: Utility function to store a function as a magic of a specific kind.
docstring_tokens: Utility function to store a function as a magic of a specific kind .
function: def record_magic(dct, magic_kind, magic_name, func):
      """Utility function to store a function as a magic of a specific kind.
  
      Parameters
      ----------
      dct : dict
        A dictionary with 'line' and 'cell' subdicts.
  
      magic_kind : str
        Kind of magic to be stored.
  
      magic_name : str
        Key to store the magic as.
  
      func : function
        Callable object to store.
      """
      if magic_kind == 'line_cell':
          dct['line'][magic_name] = dct['cell'][magic_name] = func
      else:
          dct[magic_kind][magic_name] = func
function_tokens: def record_magic ( dct , magic_kind , magic_name , func ) : if magic_kind == 'line_cell' : dct [ 'line' ] [ magic_name ] = dct [ 'cell' ] [ magic_name ] = func else : dct [ magic_kind ] [ magic_name ] = func