class_docstr: Interface for defining a cluster environment.
  
  To enable auto bootrapping (aka :func:`jax.distributed.initialize()`),
  cluster environments need to derive from :class:`ClusterEnv` and implement
  :func:`is_env_present`, :func:`get_coordinator_address`,
  :func:`get_process_count`, and :func:`get_process_id`.
  :class:`ClusterEnv` subclasses are automatically detected when imported.
docstr: Get index of current process inside a host.
  
  The method is only useful to support single device per process.
  In that case, each process will see a local device whose ID is
  the same as its local process ID.
  If None, JAX will not restrict the visible devices.
code: def get_local_process_id(cls) -> int | None:
      """Get index of current process inside a host.
  
      The method is only useful to support single device per process.
      In that case, each process will see a local device whose ID is
      the same as its local process ID.
      If None, JAX will not restrict the visible devices.
      """
      return None
  
file_path: jax/jax/_src/clusters/cluster.py
imports: from __future__ import annotations
  from collections.abc import Sequence
  import logging
  from jax._src.cloud_tpu_init import running_in_cloud_tpu_vm
label_desc: Use image node_id 7 for calling the ClusterEnv obj's underlying member method code with example usage: obj.get_local_process_id(cls) and returns: None