class_docstr: Test accelerator
class_docstr_tok: ["Test","accelerator"]
code: def test_normal(self):
      p = (
          towhee.pipe.input("a")
          .map("a", "c", ops.MyAccOp(10))
          .output("c")
      )
      self.assertEqual(p(10).get()[0], 20)
  
      p = (
          towhee.pipe.input("a")
          .map(
              "a",
              "c",
              ops.MyAccOp(10),
              config={"acc_info": {"type": "mock", "params": None}},
          )
          .output("c")
      )
      # the mock accelerator will do nothing
      self.assertEqual(p(10).get()[0], 10)
  
imports: import unittest
  import torch
  import towhee
  from towhee import ops, register, accelerate
  from towhee.serve.triton.bls.python_backend_wrapper import pb_utils
label_desc: Use image node_id 1 for calling the TestAccelerator obj's underlying member method code with example usage: obj.test_normal() without return types