code: def get_trial_id():
      raise DeprecationWarning(
          "`tune.get_trial_id()` is deprecated. "
          "Use `ray.train.get_context().get_trial_id()` instead."
      )
  
file_path: ray/python/ray/tune/trainable/session.py
imports: import logging
  from contextlib import contextmanager
  from typing import Dict, Optional, Set
  import ray
  from ray.tune.error import TuneError
  from ray.util.annotations import Deprecated
  from ray.util.placement_group import _valid_resource_shape
  from ray.util.scheduling_strategies import PlacementGroupSchedulingStrategy, SchedulingStrategyT
label_desc: Use image node_id 7 for calling a global function with example usage: get_trial_id() without return types