code: def generate_input_data(
      input_file, input_node, input_shape, input_ranges, input_data_type
  ):
      np.random.seed()
      print("The scope of generated data: ", input_ranges)
      for i in range(len(input_node)):
          data = (
              np.random.random(input_shape[i])
              * (input_ranges[i][1] - input_ranges[i][0])
              + input_ranges[i][0]
          )
          input_file_name = util.formatted_file_name(
              input_file, input_node[i]
          )
          MaceLogger.info("Generate input file: %s" % input_file_name)
          if input_data_type[i] == mace_pb2.DT_FLOAT:
              np_data_type = np.float32
          elif input_data_type[i] == mace_pb2.DT_INT32:
              np_data_type = np.int32
  
          data.astype(np_data_type).tofile(input_file_name)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import os
  import tempfile
  import shutil
  import numpy
  from apu_utils import get_apu_so_paths
  from py_proto import mace_pb2
  from utils import util
  from utils import device
  from utils import config_parser
  from utils.config_parser import DeviceType
  from utils.target import Target
  from utils.config_parser import ModelKeys
  from utils.util import ABIType
  from utils.util import MaceLogger
  from utils.util import mace_check
  import run_target
  import validate
label_desc: Use image node_id 6 for calling a global function with example usage: generate_input_data(input_file, input_node, input_shape, input_ranges, input_data_type) without return types