code: def make_model_inputs(image, instances=None):
      if instances is None:
          return {"image": image}
  
      return {"image": image, "instances": instances}
  
file_path: detectron2/projects/DensePose/tests/test_model_e2e.py
imports: import unittest
  import torch
  from detectron2.structures import BitMasks, Boxes, Instances
  from .common import get_model
label_desc: Use image node_id 1 for calling a global function with example usage: make_model_inputs(image, instances) and returns: dict, dict