code: def test_study_add_observation_no_iteration():
      s = get_mock_study()
      t = s.get_suggestion()
      s.add_observation(
          trial=t, objective=0.1, context={"other_metrics": 0.2}
      )
      assert list(s.results.T.to_dict().values()) == [
          {
              "Trial-ID": 1,
              "Objective": 0.1,
              "other_metrics": 0.2,
              "a": 1,
              "b": 2,
              "Status": sherpa.TrialStatus.INTERMEDIATE,
              "Iteration": 1,
          }
      ]
  
file_path: sherpa/tests/test_study.py
imports: import pytest
  import sherpa
  import sherpa.core
  import sherpa.schedulers
  import sherpa.database
  import pandas
  import collections
  from testing_utils import *
label_desc: Use image node_id 3 for calling a global function with example usage: test_study_add_observation_no_iteration() without return types