code: def test_params(storage_mode: str) -> None:
      with StorageSupplier(storage_mode) as storage:
          if dist.get_rank() == 0:
              study = optuna.create_study(storage=storage)
              trial = TorchDistributedTrial(study.ask())
          else:
              trial = TorchDistributedTrial(None)
  
          trial.suggest_float("f", 0, 1)
          trial.suggest_int("i", 0, 1)
          trial.suggest_categorical("c", ("a", "b", "c"))
  
          params = trial.params
          assert 0 <= params["f"] <= 1
          assert 0 <= params["i"] <= 1
          assert params["c"] in {"a", "b", "c"}
  
imports: import datetime
  import os
  from typing import Optional
  import pytest
  import optuna
  from optuna._imports import try_import
  from optuna.integration import TorchDistributedTrial
  from optuna.testing.pruners import DeterministicPruner
  from optuna.testing.storages import StorageSupplier
label_desc: Use image node_id 17 for calling a global function with example usage: test_params(storage_mode) without return types