code: def _multiple_callbacks(callbacks, *args, **kwargs):
      
      if isinstance(callbacks, list):
          for cb in callbacks:
              cb(*args, **kwargs)
          return
      if callbacks:
          callbacks(*args, **kwargs)
docs: Sends args and kwargs to any configured callbacks.
      This handles the cases where the 'callbacks' variable
      is ``None``, a single function, or a list.