code: def _get_call_kwargs(_locals_):
      _locals_ = _locals_.copy()
      _locals_.pop("loss_or_grads")
      _locals_.pop("params")
      return _locals_
  
imports: from collections import OrderedDict
  from functools import partial
  import numpy
  import pytensor
  import pytensor.tensor
  import pymc
label_desc: Use image node_id 2 for calling a global function with example usage: _get_call_kwargs(_locals_) and returns: _locals_