code: def _compute(xp, scp, lmb, data):
      result = scp.stats.boxcox_llf(lmb, data)
      if data.ndim == 1:
          if data.dtype.kind == "c":
              assert result.dtype == xp.complex128
          else:
              assert result.dtype == xp.float64
      else:
          if data.dtype.kind in "cf":
              assert result.dtype == data.dtype
          elif lmb == 0:
              for dtype1 in [xp.float16, xp.float32, xp.float64]:
                  if xp.can_cast(data.dtype, dtype1):
                      break
              assert result.dtype == dtype1
          else:
              assert result.dtype == xp.float64
      return result, _dtype(data.dtype, xp)
  
file_path: cupy/tests/cupyx_tests/scipy_tests/stats_tests/test_morestats.py
imports: import numpy
  import cupy
  from cupy import testing
  import cupyx
  import cupyx.scipy.stats
label_desc: Use image node_id 3 for calling a global function with example usage: _compute(xp, scp, lmb, data) and returns: result,  _dtype