class_docstr: Context for Ray training executions.
class_docstr_tok: ["Context","for","Ray","training","executions","."]
code: def get_trial_resources(self) -> "PlacementGroupFactory":
      return session.get_trial_resources()
  
file_path: ray/python/ray/train/context.py
imports: import threading
  from typing import TYPE_CHECKING, Any, Dict, Optional
  from ray.train._internal import session
  from ray.train._internal.storage import StorageContext
  from ray.util.annotations import DeveloperAPI, PublicAPI
label_desc: Use image node_id 5 for calling the TrainContext obj's underlying member method code with example usage: obj.get_trial_resources() and returns: session