code: def get_init_arguments(
      exclude: Optional[Iterable[str]] = [], verbose: bool = False
  ) -> Dict[str, Any]:
      """
      Get all input arguments (*args and **kwargs) sent to the most-recently called method, given it
      is an ``__init__`` of a class.
  
      Parameters
      ----------
      exclude: list
          Arguments to exclude from ``init_args``. If an argument is not found in ``init_args``, it
          will be ignored
      verbose: bool
          Print keys in ``exclude`` not found in ``init_args``
  
      Returns
      -------
      init_args: dict
          Argument dictionary with keys being argument names and values being arguments
  
      Note
      ----
      If the most-recently called method is not an ``__init__`` of a class, this function will return
      an empty dictionary.
  
      """
      frame = inspect.currentframe().f_back
      init_args = pytorch_lightning.utilities.parsing.get_init_args(
          frame
      )
  
      if exclude:
          for exclude_arg in exclude:
              try:
                  del init_args[exclude_arg]
              except KeyError:
                  if verbose:
                      print(
                          f"Key {exclude_arg} not found in ``init_args`` and will be ignored."
                      )
                  continue
  
      return init_args
  
imports: from datetime import datetime
  import inspect
  from pathlib import Path
  import re
  import time
  from typing import Any, Dict, Iterable, List, Optional, Union
  import docstring_parser
  import numpy
  import pandas
  import pytorch_lightning
  from scipy.sparse import coo_matrix
  import torch
  from collie.interactions import Interactions
label_desc: Use image node_id 9 for calling a global function with example usage: get_init_arguments(exclude, verbose) and returns: init_args