code: def sample_relative(
      self,
      study: "optuna.study.Study",
      trial: "optuna.trial.FrozenTrial",
      search_space: dict[str, BaseDistribution],
  ) -> dict[str, float]:
      if len(study.trials) > 1:
          raise RuntimeError(
              "`FirstTrialOnlyRandomSampler` only works on the first trial."
          )
  
      return super(FirstTrialOnlyRandomSampler, self).sample_relative(
          study, trial, search_space
      )
  
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 1 for calling the FirstTrialOnlyRandomSampler obj's underlying member method code with example usage: obj.sample_relative(study, trial, search_space) and returns: super