code: def test_weighted_mean():
      means = np.array([1.0])
      weights = np.array([1.0])
      assert weighted_mean(means, weights) == 1
      means = np.array(range(5)).astype(np.float64)
      weights = np.array(range(5, 10)).astype(np.float64)
      assert weighted_mean(means, weights) == 80
  
file_path: FinQuant/tests/test_quants.py
imports: import pdb
  import numpy
  import pandas
  import pytest
  from finquant.quants import annualised_portfolio_quantities, downside_risk, sharpe_ratio, sortino_ratio, treynor_ratio, value_at_risk, weighted_mean, weighted_std
label_desc: Use image node_id 1 for calling a global function with example usage: test_weighted_mean() without return types