code: def stored_repr_to_value(
      cls, value: Optional[float], float_type: TrialValueType
  ) -> float:
      if float_type == cls.TrialValueType.INF_POS:
          assert value is None
          return float("inf")
      elif float_type == cls.TrialValueType.INF_NEG:
          assert value is None
          return float("-inf")
      else:
          assert float_type == cls.TrialValueType.FINITE
          assert value is not None
          return value
  
file_path: optuna/optuna/storages/_rdb/alembic/versions/v3.0.0.d.py
imports: import enum
  import numpy
  from alembic import op
  import sqlalchemy
  from sqlalchemy.exc import SQLAlchemyError
  from sqlalchemy import orm
  from typing import Optional
  from typing import Tuple
label_desc: Use image node_id 2 for calling the TrialValueModel obj's underlying member method code with example usage: obj.stored_repr_to_value(cls, value, float_type) and returns: float, float, value