code: def test_symmetric_triangle(self):
      npt.assert_array_equal(
          self.utils.symmetric_triangle(), np.array([1, 1])
      )
      npt.assert_array_equal(
          self.utils.symmetric_triangle(weighted=True),
          np.array([0.5, 0.5]),
      )
  
      array_4 = self.utils.symmetric_triangle(
          n=4
      )  # or np.array([1, 2, 2, 1])
      array_4w = array_4 / np.sum(array_4)
      npt.assert_array_equal(
          self.utils.symmetric_triangle(n=4), array_4
      )
      npt.assert_array_equal(
          self.utils.symmetric_triangle(n=4, weighted=True), array_4w
      )
  
      array_5 = self.utils.symmetric_triangle(
          n=5
      )  # or np.array([1, 2, 3, 2, 1])
      array_5w = array_5 / np.sum(array_5)
      npt.assert_array_equal(
          self.utils.symmetric_triangle(n=5), array_5
      )
      npt.assert_array_equal(
          self.utils.symmetric_triangle(n=5, weighted=True), array_5w
      )
  
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 25 for calling the TestUtilities obj's underlying member method code with example usage: obj.test_symmetric_triangle() without return types