code: def _reduced_quantize_scale(scale: float) -> Tuple[int, int]:
      """A reduction of precision is required for 16 bit data."""
      mantissa_scaled, required_shift = _quantize_scale(scale)
      # This is max a signed 16-bit number could represent
      max_reduced_mantissa_scaled = (1 << 15) - 1
      # if the current value is larger than pre-scaled max_reduced_mantissa_scaled
      # we need to saturate the anwser to max_reduced_mantissa_scaled
      if mantissa_scaled >= max_reduced_mantissa_scaled << 16:
          reduced_mantissa_scaled = max_reduced_mantissa_scaled
      else:
          reduced_mantissa_scaled = (mantissa_scaled + (1 << 15)) >> 16
      reduced_shift = required_shift - 16
  
      if required_shift < 0 or required_shift >= (1 << 6):
          # Shift outside of valid range, set scale to 0
          return 0, 16
  
      return reduced_mantissa_scaled, reduced_shift
  
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 9 for calling a global function with example usage: _reduced_quantize_scale(scale) and returns: reduced_mantissa_scaled,  reduced_shift, int,  int