class_docstr: GRPCServer sync client.
class_docstr_tok: ["GRPCServer","sync","client","."]
code: def __call__(
      self,
      name: str,
      params: T.Any = None,
      model: T.Optional["IOBase"] = None,
  ):
      msg = _gen_input(name, params, model)
      response = self._stub.Predict(msg)
      if response.code == 0:
          return Response(
              code=response.code,
              msg=response.msg,
              content=_parse_output(response.content),
          )
      return Response(
          code=response.code, msg=response.msg, content=None
      )
  
file_path: towhee/towhee/serve/grpc/client.py
imports: import typing
  from pydantic import BaseModel
  import numpy
  from towhee.utils.thirdparty.grpc_utils import grpc
  from .None import service_pb2
  from .None import service_pb2_grpc
  from towhee.serve.io import JSON, TEXT, NDARRAY, BYTES
label_desc: Use image node_id 4 for calling the Client obj's underlying member method code with example usage: obj.__call__(name, params, model) and returns: Response, Response