code: def _match_struct_output(lhs, rhs, atol=1e-2, rtol=1e-2):
      if isinstance(lhs, (list, tuple)):
          for lhs_ele, rhs_ele in zip(lhs, rhs):
              _match_struct_output(
                  lhs_ele, rhs_ele, atol=atol, rtol=rtol
              )
      else:
          npt.assert_allclose(
              lhs.asnumpy().astype("float32"),
              rhs.asnumpy().astype("float32"),
              atol=atol,
              rtol=rtol,
          )
  
file_path: gluon-nlp/src/gluonnlp/utils/testing.py
imports: import numpy.testing
  import numpy
  import mxnet
  from mxnet.util import use_np
  from .parameter import move_to_ctx
label_desc: Use image node_id 4 for calling a global function with example usage: _match_struct_output(lhs, rhs, atol, rtol) without return types