code: def test_pchisqtail():
      def right_tail_from_scipy(x, df, ncp):
          if ncp:
              return 1 - spst.ncx2.cdf(x, df, ncp)
          else:
              return 1 - spst.chi2.cdf(x, df)
  
      arglists = [
          [3, 1, 2],
          [5, 1, None],
          [1, 3, 4],
          [1, 3, None],
          [3, 6, 0],
          [3, 6, None],
      ]
  
      for args in arglists:
          assert hl.eval(hl.pchisqtail(*args)) == pytest.approx(
              right_tail_from_scipy(*args)
          ), args
  
file_path: hail/hail/python/test/hail/expr/test_functions.py
imports: import hail
  import scipy.stats
  import pytest
  from ..helpers import resource
label_desc: Use image node_id 3 for calling a global function with example usage: test_pchisqtail() and returns: unknown, unknown