class_docstr: A trial is a process of evaluating an objective function.
  
  This object is passed to an objective function and provides interfaces to get parameter
  suggestion, manage the trial's state, and set/get user-defined attributes of the trial.
  
  Note that the direct use of this constructor is not recommended.
  This object is seamlessly instantiated and passed to the objective function behind
  the :func:`optuna.study.Study.optimize()` method; hence library users do not care about
  instantiation of this object.
  
  Args:
      study:
          A :class:`~optuna.study.Study` object.
      trial_id:
          A trial ID that is automatically generated.
class_docstr_tok: ["A","trial","is","a","process","of","evaluating","an","objective","function",".","This","object","is","passed","to","an","objective","function","and","provides","interfaces","to","get","parameter","suggestion",",","manage","the","trial","'s","state",",","and","set\/get","user-defined","attributes","of","the","trial",".","Note","that","the","direct","use","of","this","constructor","is","not","recommended",".","This","object","is","seamlessly","instantiated","and","passed","to","the","objective","function","behind","the",":","func",":","`","optuna.study.Study.optimize","(",")","`","method",";","hence","library","users","do","not","care","about","instantiation","of","this","object",".","Args",":","study",":","A",":","class",":","`","~optuna.study.Study","`","object",".","trial_id",":","A","trial","ID","that","is","automatically","generated","."]
code: def _is_fixed_param(
      self, name: str, distribution: BaseDistribution
  ) -> bool:
      if name not in self._fixed_params:
          return False
  
      param_value = self._fixed_params[name]
      param_value_in_internal_repr = distribution.to_internal_repr(
          param_value
      )
  
      contained = distribution._contains(param_value_in_internal_repr)
      if not contained:
          warnings.warn(
              "Fixed parameter '{}' with value {} is out of range "
              "for distribution {}.".format(
                  name, param_value, distribution
              )
          )
      return True
  
imports: from __future__ import annotations
  from collections import UserDict
  import copy
  import datetime
  from typing import Any
  from typing import Dict
  from typing import Optional
  from typing import overload
  from typing import Sequence
  import warnings
  import optuna
  from optuna import distributions
  from optuna import logging
  from optuna import pruners
  from optuna._convert_positional_args import convert_positional_args
  from optuna._deprecated import deprecated_func
  from optuna.distributions import BaseDistribution
  from optuna.distributions import CategoricalChoiceType
  from optuna.distributions import CategoricalDistribution
  from optuna.distributions import FloatDistribution
  from optuna.distributions import IntDistribution
  from optuna.trial import FrozenTrial
  from optuna.trial._base import _SUGGEST_INT_POSITIONAL_ARGS
  from optuna.trial._base import BaseTrial
label_desc: Use image node_id 20 for calling the Trial obj's underlying member method code with example usage: obj._is_fixed_param(name, distribution) and returns: True, False