code: def _create_npu_block_config(
      serial_block_config: spec.SerialBlockConfig,
  ) -> vapi.NpuShape3D:
      """A helper function to convert a SerialBlockConfig into an NpuShape3D"""
      if (
          serial_block_config.height
          * serial_block_config.width
          * serial_block_config.depth
          == 0
      ):
          return None
  
      block_config = vapi.NpuShape3D(
          height=int(serial_block_config.height),
          width=int(serial_block_config.width),
          depth=int(serial_block_config.depth),
      )
      return block_config
  
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 22 for calling a global function with example usage: _create_npu_block_config(serial_block_config) and returns: block_config, None