code: def relay_text_conv2d(tmpdir_factory):
      file_path = os.path.join(
          tmpdir_factory.mktemp("model"), "relay.txt"
      )
  
      RELAY_MODEL = textwrap.dedent(
          """\
          #[version = "0.0.5"]
          def @main(%data : Tensor[(1, 3, 64, 64), uint8], %weight : Tensor[(3, 3, 5, 5), int8]) {
              %1 = nn.conv2d(
                   %data,
                   %weight,
                   padding=[2, 2],
                   channels=3,
                   kernel_size=[5, 5],
                   data_layout="NCHW",
                   kernel_layout="OIHW",
                   out_dtype="int32");
              %2 = cast(nn.max_pool2d(%1, pool_size=[3, 3]), dtype="int8");
              %3 = nn.conv2d(
                   %2,
                   %weight,
                   padding=[2, 2],
                   channels=3,
                   kernel_size=[5, 5],
                   data_layout="NCHW",
                   kernel_layout="OIHW",
                   out_dtype="int32");
              %4 = nn.max_pool2d(%3, pool_size=[3, 3]);
              %4
          }
      """
      )
  
      with open(file_path, "w") as relay_text:
          relay_text.write(RELAY_MODEL)
      return file_path
  
imports: import os
  import pytest
  import tarfile
  import textwrap
  import numpy
  from PIL import Image
  import tvm
  from tvm import relay
  from tvm.driver import tvmc
  from tvm.contrib.download import download_testdata
label_desc: Use image node_id 16 for calling a global function with example usage: relay_text_conv2d(tmpdir_factory) and returns: file_path