code: def _init_kwargs_dict(kwargs):
      """Initialize kwargs dict.
  
      If the input is a dictionary, it returns
      a copy of the dictionary, otherwise it
      returns an empty dictionary.
  
      Parameters
      ----------
      kwargs : dict or None
          kwargs dict to initialize
      """
      return {} if kwargs is None else kwargs.copy()
  
imports: import importlib
  import warnings
  from typing import Any, Dict
  import matplotlib
  import numpy
  import packaging
  from matplotlib.colors import to_hex
  from scipy.stats import mode, rankdata
  from scipy.interpolate import CubicSpline
  from ..rcparams import rcParams
  from ..stats.density_utils import kde
  from ..stats import hdi
label_desc: Use image node_id 18 for calling a global function with example usage: _init_kwargs_dict(kwargs) and returns: unknown