code: def get(self, key: str) -> Any:
      if not isinstance(key, str):
          raise TypeError(
              "key must be a string, got: {}.".format(type(key))
          )
      return self.store.get(key, None)
  
file_path: ray/python/ray/serve/tests/unit/test_endpoint_state.py
imports: import sys
  from typing import Any, Tuple
  from unittest.mock import Mock, patch
  import pytest
  from ray.serve._private.endpoint_state import EndpointState
label_desc: Use image node_id 3 for calling the MockKVStore obj's underlying member method code with example usage: obj.get(key) and returns: self