code: def get_data_by_fields(fields, nb):
      # logger.info(f"fields: {fields}")
      fields_not_auto_id = []
      for field in fields:
          if not field.get("autoId", False):
              fields_not_auto_id.append(field)
      # logger.info(f"fields_not_auto_id: {fields_not_auto_id}")
      data = []
      for i in range(nb):
          tmp = {}
          for field in fields_not_auto_id:
              tmp[field["name"]] = gen_data_by_type(field)
          data.append(tmp)
      return data
  
imports: import random
  import time
  import random
  import string
  from faker import Faker
  import numpy
  from sklearn import preprocessing
  import requests
  from loguru import logger
  import datetime
label_desc: Use image node_id 7 for calling a global function with example usage: get_data_by_fields(fields, nb) and returns: data