code: def test_fibonacci_weighted(self):
      self.assertIs(
          type(self.utils.fibonacci(zero=True, weighted=True)),
          np.ndarray,
      )
      npt.assert_array_equal(
          self.utils.fibonacci(n=0, zero=True, weighted=True),
          np.array([0]),
      )
      npt.assert_array_equal(
          self.utils.fibonacci(n=0, zero=False, weighted=True),
          np.array([1]),
      )
  
      npt.assert_allclose(
          self.utils.fibonacci(n=5, zero=True, weighted=True),
          np.array([0, 1 / 12, 1 / 12, 1 / 6, 1 / 4, 5 / 12]),
      )
      npt.assert_allclose(
          self.utils.fibonacci(n=5, zero=False, weighted=True),
          np.array([1 / 12, 1 / 12, 1 / 6, 1 / 4, 5 / 12]),
      )
  
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 19 for calling the TestUtilities obj's underlying member method code with example usage: obj.test_fibonacci_weighted() without return types