code: def check_kwargs(kwargs):
      """Return kwargs or an empty dict.
  
      We often pass named kwargs (like `sarimax_kwargs`) as None by default. This
      is to avoid a mutable default, which can bite you in unexpected ways. This
      will return a kwarg-compatible value.
      """
      if kwargs:
          return kwargs
      return {}
  
file_path: pmdarima/pmdarima/arima/_validation.py
imports: import numpy
  import warnings
  from sklearn import metrics
  from pmdarima.warnings import ModelFitWarning
label_desc: Use image node_id 3 for calling a global function with example usage: check_kwargs(kwargs) and returns: dict, kwargs