docstr: Test angle checks.
          
docstr_tok: ["Test","angle","checks","."]
code: def test_check_angle(self):
      """Test angle checks."""
      num_examples = 100
      random = default_rng()
  
      assert (
          check_angle(
              "azimuth",
              random.uniform(low=-180, high=180, size=num_examples),
          )
          == True
      )
      assert (
          check_angle(
              "elevation",
              random.uniform(low=-90, high=90, size=num_examples),
          )
          == True
      )
      assert (
          check_angle(
              "yaw",
              random.uniform(low=-180, high=180, size=num_examples),
          )
          == True
      )
      assert (
          check_angle(
              "pitch",
              random.uniform(low=-90, high=90, size=num_examples),
          )
          == True
      )
      assert (
          check_angle(
              "roll",
              random.uniform(low=-180, high=180, size=num_examples),
          )
          == True
      )
  
      with pytest.raises(ValueError):
          check_angle("azimuth", [-200, 200])
  
      with pytest.raises(ValueError):
          check_angle("elevation", [-100, 100])
  
      with pytest.raises(ValueError):
          check_angle("yaw", [-200, 200])
  
      with pytest.raises(ValueError):
          check_angle("pitch", [-200, 200])
  
      with pytest.raises(ValueError):
          check_angle("roll", [-200, 200])
  
file_path: NeMo/tests/collections/asr/test_asr_data_simulation.py
imports: import os
  import tempfile
  from typing import List, Type, Union
  import numpy
  import pytest
  from numpy.random import default_rng
  from nemo.collections.asr.data.data_simulation import ArrayGeometry, check_angle, convert_placement_to_range, convert_rir_to_multichannel, simulate_room_mix, wrap_to_180
  from nemo.collections.asr.parts.preprocessing.segment import AudioSegment
label_desc: Use image node_id 1 for calling the TestDataSimulationUtils obj's underlying member method code with example usage: obj.test_check_angle() without return types