code: def test_single_in_single_out(self):
      def foo(image):
          return image * 2
  
      it = itertools.product(
          ["image", ["image"]],
          [None, "image", ["image"], {"image": "image"}],
      )
      for i in it:
          d = {"image": 2}
          dres = adaptor(foo, i[0], i[1])(d)
          self.assertEqual(dres["image"], 4)
  
      d = {"image": 2}
      dres = adaptor(foo, "image")(d)
      self.assertEqual(dres["image"], 4)
  
      d = {"image": 2}
      dres = adaptor(foo, "image", "image")(d)
      self.assertEqual(dres["image"], 4)
  
      d = {"image": 2}
      dres = adaptor(foo, "image", {"image": "image"})(d)
      self.assertEqual(dres["image"], 4)
  
      d = {"img": 2}
      dres = adaptor(foo, "img", {"img": "image"})(d)
      self.assertEqual(dres["img"], 4)
  
      d = {"img": 2}
      dres = adaptor(foo, ["img"], {"img": "image"})(d)
      self.assertEqual(dres["img"], 4)
  
file_path: MONAI/tests/test_adaptors.py
imports: from __future__ import annotations
  import itertools
  import unittest
  from monai.transforms.adaptors import FunctionSignature, adaptor, apply_alias, to_kwargs
label_desc: Use image node_id 2 for calling the TestAdaptors obj's underlying member method code with example usage: obj.test_single_in_single_out() and returns: unknown