code: def _check_trial_running(trial):
      if trial.temporary_state.ray_actor:
          ray.get(trial.temporary_state.ray_actor.get_info.remote())
          return True
      return False
  
imports: import time
  import os
  import pytest
  import sys
  from unittest.mock import MagicMock
  import ray
  from ray import tune
  from ray.train import CheckpointConfig
  from ray.cluster_utils import Cluster
  from ray.train._internal.storage import StorageContext
  from ray.tune.error import TuneError
  from ray.tune.search import BasicVariantGenerator
  from ray.tune.experiment import Trial
  from ray.tune.execution.tune_controller import TuneController
label_desc: Use image node_id 1 for calling a global function with example usage: _check_trial_running(trial) and returns: False, True