code: def construct_requirement(
      dtype,
      granularity,
      restriction=None,
      value_range=(MIN_INT8, MAX_INT8),
  ):
      d = {}
      d["data_type"] = dtype
      d["granularity"] = granularity
      d["restriction"] = restriction
      d["range"] = value_range
      return d
  
imports: import numpy
  import tensorflow
  import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: construct_requirement(dtype, granularity, restriction, value_range) and returns: d