code: def test_infer_multiout_op2():
      def test_func(a):
          q, l = mx.nd.linalg.gelqf(a)
          return mx.nd.sum(l)
  
      data32 = mx.nd.random.normal(
          shape=(2, 3), ctx=mx.cpu(), dtype=np.float32
      )
      data32.attach_grad()
      with autograd.record():
          test32 = test_func(data32)
          test32.backward()
  
      data64 = mx.nd.Cast(data32, dtype=np.float64)
      data64.attach_grad()
      with autograd.record():
          test64 = test_func(data64)
          test64.backward()
      assert_almost_equal(
          data64.grad.asnumpy(),
          data32.grad.asnumpy(),
          atol=1e-5,
          rtol=1e-5,
      )
  
imports: import mxnet
  import numpy
  from common import models
  from mxnet import autograd
  from mxnet.test_utils import assert_almost_equal
label_desc: Use image node_id 2 for calling a global function with example usage: test_infer_multiout_op2() and returns: mx