class_docstr: Unit test for Config.
code: def test_different_op(self):
      pipe = (
          towhee.pipe.input("a")
          .map("a", "b", lambda x: x + 1)
          .output("a", "b")
      )
      graph = pipe.preload()
      self.assertEqual(
          [v.name for _, v in graph._nodes.items()],
          ["_input", "lambda-0", "_output"],
      )
      pipe(1).get()
  
      pipe = towhee.pipe.input("a").map("a", "b", add).output("a", "b")
      graph = pipe.preload()
      self.assertEqual(
          [v.name for _, v in graph._nodes.items()],
          ["_input", "add-0", "_output"],
      )
      pipe(1).get()
  
      pipe = (
          towhee.pipe.input("a")
          .map("a", "b", ops.local.add_operator(10))
          .output("a", "b")
      )
      graph = pipe.preload()
      self.assertEqual(
          [v.name for _, v in graph._nodes.items()],
          ["_input", "local/add-operator-0", "_output"],
      )
      pipe(1).get()
  
      pipe = (
          towhee.pipe.input("a")
          .map("a", "b", ops.Add())
          .output("a", "b")
      )
      graph = pipe.preload()
      self.assertEqual(
          [v.name for _, v in graph._nodes.items()],
          ["_input", "Add-0", "_output"],
      )
      pipe(1).get()
  
imports: import unittest
  import towhee
  from towhee.runtime import ops, register
label_desc: Use image node_id 7 for calling the TestConfig obj's underlying member method code with example usage: obj.test_different_op() without return types