code: def get_bucket_data(
      bucket: str,
      experiment_name: str,
  ) -> Tuple[ExperimentStateCheckpoint, ExperimentDirCheckpoint]:
      local_bucket_dir = fetch_bucket_contents_to_tmp_dir(bucket)
      local_experiment_dir = os.path.join(
          local_bucket_dir, experiment_name
      )
  
      bucket_state_cp = load_experiment_checkpoint_from_state_file(
          local_experiment_dir
      )
  
      bucket_dir_cp = load_experiment_checkpoint_from_dir(
          bucket_state_cp.trials, local_experiment_dir
      )
  
      return bucket_state_cp, bucket_dir_cp
  
imports: import argparse
  import csv
  import io
  import tarfile
  from dataclasses import dataclass
  import json
  import os
  import pickle
  import platform
  import re
  import shutil
  import signal
  import subprocess
  import tempfile
  import time
  from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple
  import ray
  from ray.train._internal.storage import StorageContext
  from ray.tune.execution.experiment_state import _find_newest_experiment_checkpoint
  from ray.tune.result import _get_defaults_results_dir
  from ray.tune.utils.serialization import TuneFunctionDecoder
label_desc: Use image node_id 22 for calling a global function with example usage: get_bucket_data(bucket, experiment_name) and returns: bucket_state_cp,  bucket_dir_cp