code: def test_hpopt_orion():
      from speechbrain.utils import hpopt as hp
  
      results = {}
  
      class MockOrion:
          def report_objective(self, value):
              results["value"] = value
  
      mock_orion = MockOrion()
  
      reporter = hp.OrionHyperparameterOptimizationReporter(
          objective_key="valid_loss"
      )
      reporter.orion_client = mock_orion
  
      result = {"train_loss": 0.9, "valid_loss": 1.2, "per": 0.10}
      reporter.report_objective(result)
      assert results["value"] == pytest.approx(1.2)
  
imports: import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_hpopt_orion() without return types