code: def fixture_client(host: str, enable_grpc: bool):
      if not enable_grpc:
          return bentoml.client.Client.from_url(host)
  
file_path: BentoML/examples/flax/MNIST/tests/test_endpoints.py
imports: from __future__ import annotations
  import io
  import typing
  import numpy
  import pytest
  import bentoml
  from bentoml.testing.grpc import async_client_call
  from bentoml.testing.grpc import create_channel
label_desc: Use image node_id 2 for calling a global function with example usage: fixture_client(host, enable_grpc) and returns: bentoml