code: def get_cluster_info() -> Optional[ClusterInfo]:
      """
      Returns either the :class:`~determined.ClusterInfo` object for the current task, or ``None`` if
      not running in a task.
      """
  
      global _info
      if isinstance(_info, str):
          _info = ClusterInfo._from_file()
      return _info
  
imports: import json
  import os
  from typing import Any, Dict, Iterable, List, Optional, Union
  from determined import gpu
label_desc: Use image node_id 3 for calling a global function with example usage: get_cluster_info() and returns: _info