code: def test_assert_raises_regex_context_manager():
      with assert_raises_regex(ValueError, "no deprecation warning"):
          raise ValueError("no deprecation warning")
  
file_path: numpy/numpy/lib/tests/test_utils.py
imports: import pytest
  import numpy
  from numpy.testing import assert_raises_regex
  import numpy.lib._utils_impl
  from io import StringIO
label_desc: Use image node_id 1 for calling a global function with example usage: test_assert_raises_regex_context_manager() without return types