class_docstr: Basic test case for `OperatorPool`.
class_docstr_tok: ["Basic","test","case","for","`","OperatorPool","`","."]
code: def test_acquire_release(self):
      hub_op_id = "local/add_operator"
      op = self._op_pool.acquire_op(
          self._key, hub_op_id, [0], None, "main", False
      )
  
      # Perform some simple operations.
      self.assertTrue(isinstance(op, Operator))
      self.assertEqual(op(1).sum, 1)
  
      # Release and re-acquire the operator.
      self._op_pool.release_op(op)
      op = self._op_pool.acquire_op(
          self._key, hub_op_id, None, {"factor": 0}, "main", False
      )
      # Perform more operations.
      self.assertEqual(op(-1).sum, -1)
      self.assertEqual(op(100).sum, 100)
  
file_path: towhee/tests/unittests/runtime/test_operator_pool.py
imports: import unittest
  from towhee.operator import Operator
  from towhee.runtime.operator_manager import OperatorPool
label_desc: Use image node_id 2 for calling the TestOperatorPool obj's underlying member method code with example usage: obj.test_acquire_release() without return types