code: def expand_dims(x):
      """Jitting numpy expand_dims."""
      if not isinstance(x, np.ndarray):
          return np.expand_dims(x, 0)
      shape = x.shape
      return x.reshape(shape[:0] + (1,) + shape[0:])
  
imports: import functools
  import importlib
  import importlib.resources
  import re
  import warnings
  from functools import lru_cache
  import matplotlib.pyplot
  import numpy
  from numpy import newaxis
  from .rcparams import rcParams
label_desc: Use image node_id 12 for calling a global function with example usage: expand_dims(x) and returns: x, np