docstr: Tests that an exception is raised when m is not in the expected range.
docstr_tok: ["Tests","that","an","exception","is","raised","when","m","is","not","in","the","expected","range","."]
code: def test_evaluate_legendre_polynomial_exceptions_m_raised(self):
      """Tests that an exception is raised when m is not in the expected range."""
      l = np.random.randint(1, 4, size=(1,))
      m = np.random.randint(5, 10, size=(1,))
      x = np.random.uniform(size=(1,)) * 2.0
  
      with self.assertRaises(tf.errors.InvalidArgumentError):
          self.evaluate(
              spherical_harmonics.evaluate_legendre_polynomial(l, m, x)
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.math import math_helpers
  from tensorflow_graphics.math import spherical_harmonics
  from tensorflow_graphics.util import asserts
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 4 for calling the SphericalHarmonicsTest obj's underlying member method code with example usage: obj.test_evaluate_legendre_polynomial_exceptions_m_raised() without return types