code: def sample_independent(
      self,
      study: "optuna.study.Study",
      trial: "optuna.trial.FrozenTrial",
      param_name: str,
      param_distribution: BaseDistribution,
  ) -> float:
      if len(study.trials) > 1:
          raise RuntimeError(
              "`FirstTrialOnlyRandomSampler` only works on the first trial."
          )
  
      return super(
          FirstTrialOnlyRandomSampler, self
      ).sample_independent(study, trial, param_name, param_distribution)
  
file_path: optuna/optuna/testing/samplers.py
imports: from __future__ import annotations
  from typing import Any
  import optuna
  from optuna.distributions import BaseDistribution
label_desc: Use image node_id 2 for calling the FirstTrialOnlyRandomSampler obj's underlying member method code with example usage: obj.sample_independent(study, trial, param_name, param_distribution) and returns: super