code: def _internal_kv_list(
      prefix: Union[str, bytes],
      *,
      namespace: Optional[Union[str, bytes]] = None,
  ) -> List[bytes]:
      """List all keys in the internal KV store that start with the prefix."""
      if isinstance(prefix, str):
          prefix = prefix.encode()
      if isinstance(namespace, str):
          namespace = namespace.encode()
      return global_gcs_client.internal_kv_keys(prefix, namespace)
  
file_path: ray/python/ray/experimental/internal_kv.py
imports: from typing import List, Optional, Union
  from ray._private.client_mode_hook import client_mode_hook
  from ray._raylet import GcsClient
label_desc: Use image node_id 10 for calling a global function with example usage: _internal_kv_list(prefix) and returns: global_gcs_client