code: def test_pascals_triangle(self):
      self.assertIsNone(self.utils.pascals_triangle(inverse=True), None)
  
      array_1 = np.array([1])
      npt.assert_array_equal(self.utils.pascals_triangle(), array_1)
      npt.assert_array_equal(
          self.utils.pascals_triangle(weighted=True), array_1
      )
      npt.assert_array_equal(
          self.utils.pascals_triangle(weighted=True, inverse=True),
          np.array([0]),
      )
  
      array_5 = self.utils.pascals_triangle(
          n=5
      )  # or np.array([1, 5, 10, 10, 5, 1])
      array_5w = array_5 / np.sum(array_5)
      array_5iw = 1 - array_5w
      npt.assert_array_equal(self.utils.pascals_triangle(n=-5), array_5)
      npt.assert_array_equal(
          self.utils.pascals_triangle(n=-5, weighted=True), array_5w
      )
      npt.assert_array_equal(
          self.utils.pascals_triangle(
              n=-5, weighted=True, inverse=True
          ),
          array_5iw,
      )
  
      npt.assert_array_equal(self.utils.pascals_triangle(n=5), array_5)
      npt.assert_array_equal(
          self.utils.pascals_triangle(n=5, weighted=True), array_5w
      )
      npt.assert_array_equal(
          self.utils.pascals_triangle(n=5, weighted=True, inverse=True),
          array_5iw,
      )
  
imports: from .config import sample_data
  from .context import pandas_ta
  from unittest import skip, TestCase
  from unittest.mock import patch
  import numpy
  import numpy.testing
  from pandas import DataFrame, Series
  from pandas.api.types import is_datetime64_ns_dtype, is_datetime64tz_dtype
label_desc: Use image node_id 24 for calling the TestUtilities obj's underlying member method code with example usage: obj.test_pascals_triangle() without return types