code: def test_exception_to_grpc_status(
      exception: t.Type[BentoMLException], expected: grpc.StatusCode
  ):
      assert grpc_status_code(exception("something")) == expected
  
imports: from __future__ import annotations
  import typing
  from http import HTTPStatus
  from unittest.mock import Mock
  import grpc
  import pytest
  from bentoml.exceptions import BadInput
  from bentoml.exceptions import BentoMLException
  from bentoml.exceptions import InvalidArgument
  from bentoml.grpc.utils import MethodName
  from bentoml.grpc.utils import grpc_status_code
  from bentoml.grpc.utils import parse_method_name
  from bentoml.grpc.utils import to_http_status
  from bentoml.grpc.utils import wrap_rpc_handler
label_desc: Use image node_id 1 for calling a global function with example usage: test_exception_to_grpc_status(exception, expected) without return types