code: def _get_coreml_inputs(sample_inputs, args):
      return [
          ct.TensorType(
              name=k,
              shape=v.shape,
              dtype=v.numpy().dtype
              if isinstance(v, torch.Tensor)
              else v.dtype,
          )
          for k, v in sample_inputs.items()
      ]
  
imports: from python_coreml_stable_diffusion import unet, controlnet, chunk_mlprogram
  import argparse
  from collections import OrderedDict, defaultdict
  from copy import deepcopy
  import coremltools
  from diffusers import StableDiffusionPipeline, DiffusionPipeline, ControlNetModel
  import gc
  import logging
  import numpy
  import os
  import requests
  import shutil
  import time
  import re
  import pathlib
  import torch
  import torch.nn
  import torch.nn.functional
  from types import MethodType
  from transformers.models.clip import modeling_clip
label_desc: Use image node_id 1 for calling a global function with example usage: _get_coreml_inputs(sample_inputs, args) and returns: unknown