code: def test_eta_expand_global_var():
      mod = tvm.relay.fromtext(
          r"""
          #[version = "0.0.5"]
          def @aux(%x: Tensor[(), int32]) -> Tensor[(), int32] {
              %x
          }
          def @main() -> fn(Tensor[(), int32]) -> Tensor[(), int32] {
              @aux
          }
      """
      )
      seq = tvm.transform.Sequential(
          [_transform.EtaExpand(expand_global_var=True)]
      )
      with tvm.transform.PassContext(opt_level=3):
          mod = seq(mod)
      expected = tvm.relay.fromtext(
          r"""
          #[version = "0.0.5"]
          def @aux(%x: Tensor[(), int32]) -> Tensor[(), int32] {
              %x
          }
          def @main() -> fn(Tensor[(), int32]) -> Tensor[(), int32] {
              fn (%x: Tensor[(), int32]) -> Tensor[(), int32] {
                  @aux(%x)
              }
          }
      """
      )
      tvm.ir.assert_structural_equal(
          mod["main"], expected["main"], map_free_vars=True
      )
  
file_path: tvm/tests/python/relay/test_pass_eta_expand.py
imports: import os
  import numpy
  import tvm
  from tvm import te
  from tvm import relay
  import tvm.relay.transform
label_desc: Use image node_id 1 for calling a global function with example usage: test_eta_expand_global_var() without return types