code: def get_accelerator_config() -> vapi.NpuAccelerator:
      """Get the configuration of the NPU accelerator.
  
      The configuration string provided as a compiler option is converted into
      an NpuAccelerator object. Valid configuration strings:
       - 'ethos-u55-256'
       - 'ethos-u55-128'
       - 'ethos-u55-64'
       - 'ethos-u55-32'
  
      """
      npu_accel_str_map = {
          "ethos-u55-256": vapi.NpuAccelerator.Ethos_U55_256,
          "ethos-u55-128": vapi.NpuAccelerator.Ethos_U55_128,
          "ethos-u55-64": vapi.NpuAccelerator.Ethos_U55_64,
          "ethos-u55-32": vapi.NpuAccelerator.Ethos_U55_32,
          "ethos-u65-256": vapi.NpuAccelerator.Ethos_U65_256,
          "ethos-u65-512": vapi.NpuAccelerator.Ethos_U65_512,
      }
      compiler_attrs = tvm.get_global_func(
          "relay.ext.ethos-u.get_compiler_attrs"
      )()
      accel_config_str = compiler_attrs.accelerator_config
      assert (
          accel_config_str in npu_accel_str_map.keys()
      ), f"{accel_config_str} is not supported"
      return npu_accel_str_map[accel_config_str]
  
imports: import logging
  import math
  from typing import List, Optional, Tuple
  import numpy
  from ethosu.vela import api
  from ethosu.vela.architecture_allocator import find_block_config
  from ethosu.vela.architecture_features import Accelerator, create_default_arch
  from ethosu.vela.operation import NpuBlockType
  from ethosu.vela.register_command_stream_generator import resampling_mode_map
  from ethosu.vela.register_command_stream_util import to_kernel
  from ethosu.vela.shape4d import Shape4D
  import tvm
  from tvm.relay.backend.contrib.ethosu import tir_to_cs_translator
  from tvm.relay.backend.contrib.ethosu import util
label_desc: Use image node_id 11 for calling a global function with example usage: get_accelerator_config() and returns: npu_accel_str_map