code: def generate_input_data(input_size):
      if isinstance(input_size, list):
          return [torch.rand(_size) for _size in input_size]
      else:
          return torch.rand(input_size)
  
imports: import numpy
  import torch
  import torch.nn
  from six import string_types
  from coremltools import TensorType
  from coremltools.converters.mil.testing_reqs import _converter
  from coremltools.models import MLModel
  from coremltools._deps import _IS_MACOS
label_desc: Use image node_id 4 for calling a global function with example usage: generate_input_data(input_size) and returns: unknown, torch