code: def _internal_kv_del(
      key: Union[str, bytes],
      *,
      del_by_prefix: bool = False,
      namespace: Optional[Union[str, bytes]] = None,
  ) -> int:
      if isinstance(key, str):
          key = key.encode()
      if isinstance(namespace, str):
          namespace = namespace.encode()
      assert isinstance(key, bytes)
      return global_gcs_client.internal_kv_del(
          key, del_by_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 9 for calling a global function with example usage: _internal_kv_del(key) and returns: global_gcs_client