code: def _safe_subtract(x, y, *, dtype):
      """Subtraction that with `inf - inf == 0` semantics."""
      with np.errstate(invalid="ignore"):
          return np.where(
              np.equal(x, y),
              np.array(0, dtype),
              np.subtract(x, y, dtype=dtype),
          )
  
imports: from functools import partial
  import operator
  from jax._src import api
  from jax._src import config
  from jax._src import dtypes
  from jax._src.tree_util import tree_map, tree_reduce
  import numpy
label_desc: Use image node_id 10 for calling a global function with example usage: _safe_subtract(x, y) and returns: np