code: def test_find_by_trial_and_step(session: Session) -> None:
      trial = TestTrialIntermediateValueModel._create_model(session)
      trial_intermediate_value = (
          TrialIntermediateValueModel.find_by_trial_and_step(
              trial, 0, session
          )
      )
      assert trial_intermediate_value is not None
      assert 10 == trial_intermediate_value.intermediate_value
      assert (
          TrialIntermediateValueModel.find_by_trial_and_step(
              trial, 1, session
          )
          is None
      )
  
imports: from datetime import datetime
  import pytest
  from sqlalchemy import create_engine
  from sqlalchemy.exc import IntegrityError
  from sqlalchemy.orm import Session
  from optuna.storages._rdb.models import BaseModel
  from optuna.storages._rdb.models import StudyDirectionModel
  from optuna.storages._rdb.models import StudyModel
  from optuna.storages._rdb.models import StudySystemAttributeModel
  from optuna.storages._rdb.models import TrialHeartbeatModel
  from optuna.storages._rdb.models import TrialIntermediateValueModel
  from optuna.storages._rdb.models import TrialModel
  from optuna.storages._rdb.models import TrialSystemAttributeModel
  from optuna.storages._rdb.models import TrialUserAttributeModel
  from optuna.storages._rdb.models import TrialValueModel
  from optuna.storages._rdb.models import VersionInfoModel
  from optuna.study._study_direction import StudyDirection
  from optuna.trial import TrialState
label_desc: Use image node_id 2 for calling the TestTrialIntermediateValueModel obj's underlying member method code with example usage: obj.test_find_by_trial_and_step(session) without return types