code: def _lgamma_expected(x, dtype):
      if backend.get_array_module(x) is numpy:
          return _lgamma_cpu(x, dtype)
      else:
          return _lgamma_gpu(x, dtype)
  
file_path: chainer/tests/chainer_tests/functions_tests/math_tests/test_lgamma.py
imports: import unittest
  import numpy
  import chainer
  from chainer import backend
  from chainer.backends import cuda
  import chainer.functions
  from chainer import testing
label_desc: Use image node_id 3 for calling a global function with example usage: _lgamma_expected(x, dtype) and returns: _lgamma_cpu, _lgamma_gpu