code: def test_trace_less_than_1_error(trace=0.5):
      try:
          noise_generation.generate_noise_matrix_from_trace(3, trace)
      except ValueError as e:
          assert "trace > 1" in str(e)
          with pytest.raises(ValueError) as e:
              noise_generation.generate_noise_matrix_from_trace(
                  3, trace
              )
  
imports: import numpy
  from cleanlab.benchmarking import noise_generation
  import pytest
label_desc: Use image node_id 10 for calling a global function with example usage: test_trace_less_than_1_error(trace) without return types