code: def _exceptions(exceptions):
      if exceptions is None:
          exceptions = {}
      elif isinstance(exceptions, list):
          exceptions = {
              id(exc) if isinstance(exc, pd.DataFrame) else exc
              for exc in exceptions
          }
      return exceptions
  
file_path: ipyvega/vega/altair.py
imports: import warnings
  import logging
  from toolz import curried
  from IPython.display import display
  import pandas
  import altair
  from .widget import VegaWidget
label_desc: Use image node_id 1 for calling a global function with example usage: _exceptions(exceptions) and returns: exceptions