code: def _expit(X):
      xp, _ = get_namespace(X)
      if _is_numpy_namespace(xp):
          return xp.asarray(special.expit(numpy.asarray(X)))
  
      return 1.0 / (1.0 + xp.exp(-X))
  
imports: import math
  from functools import wraps
  import numpy
  import scipy.special
  from .._config import get_config
  from .fixes import parse_version
label_desc: Use image node_id 10 for calling a global function with example usage: _expit(X) and returns: unknown, xp