docstr: Test wrap.
          
docstr_tok: ["Test","wrap","."]
code: def test_wrap_to_180(self):
      """Test wrap."""
      test_cases = []
      test_cases.append({"angle": 0, "wrapped": 0})
      test_cases.append({"angle": 45, "wrapped": 45})
      test_cases.append({"angle": -30, "wrapped": -30})
      test_cases.append({"angle": 179, "wrapped": 179})
      test_cases.append({"angle": -179, "wrapped": -179})
      test_cases.append({"angle": 181, "wrapped": -179})
      test_cases.append({"angle": -181, "wrapped": 179})
      test_cases.append({"angle": 270, "wrapped": -90})
      test_cases.append({"angle": -270, "wrapped": 90})
      test_cases.append({"angle": 359, "wrapped": -1})
      test_cases.append({"angle": 360, "wrapped": 0})
  
      for test_case in test_cases:
          assert wrap_to_180(test_case["angle"]) == test_case["wrapped"]
  
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 2 for calling the TestDataSimulationUtils obj's underlying member method code with example usage: obj.test_wrap_to_180() without return types