code: def fixture_mock_handler() -> MagicMock:
      handler = MagicMock(spec=grpc.RpcMethodHandler)
      handler.request_streaming = PropertyMock(return_value=False)
      handler.response_streaming = PropertyMock(return_value=False)
      return handler
  
file_path: BentoML/tests/unit/grpc/conftest.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from unittest.mock import MagicMock
  from unittest.mock import PropertyMock
  import pytest
  from bentoml._internal.utils.lazy_loader import LazyLoader
label_desc: Use image node_id 1 for calling a global function with example usage: fixture_mock_handler() and returns: handler