class_docstr: GRPCServer test
class_docstr_tok: ["GRPCServer","test"]
code: def test_with(self):
      self.server = GRPCServer(
          api_service.build_service(
              (
                  pipe.input("nums")
                  .map("nums", "sum", sum)
                  .output("sum"),
                  "/sum",
              )
          )
      )
  
      self.server.start("localhost", 50001)
      with Client("localhost", 50001) as client:
          response = client("/sum", [1, 2, 3])
          self.assertEqual(response.code, 0)
          content = from_json(response.content)
          self.assertEqual(content[0][0], 6)
  
imports: import unittest
  import typing
  import asyncio
  from pydantic import BaseModel
  import numpy
  from towhee import api_service, pipe
  from towhee.serve.grpc.server import GRPCServer
  from towhee.serve.grpc.client import Client, AsyncClient
  from towhee.serve.io import JSON, NDARRAY, BYTES
  from towhee.utils.serializer import from_json
label_desc: Use image node_id 7 for calling the TestGRPC obj's underlying member method code with example usage: obj.test_with() without return types