code: def _create_npu_resampling_mode(
      mode: str,
  ) -> vapi.NpuResamplingMode:
      """This is a helper function to capture a list
      of arguments to create Vela NpuResamplingMode object."""
      mode_map = {
          "NONE": vapi.NpuResamplingMode.NONE,
          "NEAREST": vapi.NpuResamplingMode.NEAREST,
          "ZEROS": vapi.NpuResamplingMode.TRANSPOSE,
      }
      mode = str(mode.value)
      assert mode in mode_map.keys()
      return mode_map[mode]
  
imports: from typing import Dict, NamedTuple, Tuple, Union, List
  from enum import auto
  from enum import Enum
  import numpy
  import ethosu.vela.api
  import tvm
  from tvm.tir import stmt_functor
  from tvm.relay.backend.contrib.ethosu import util
  from tvm.relay.backend.contrib.ethosu import vela_api
  from tvm.relay.backend.contrib.ethosu.tir import spec
  from tvm.relay.backend.contrib.ethosu.tir import utils
label_desc: Use image node_id 24 for calling a global function with example usage: _create_npu_resampling_mode(mode) and returns: mode_map