code: def test_top_drawdowns(self, returns, top, expected):
      self.assertEqual(
          timeseries.get_top_drawdowns(returns, top=top), expected
      )
  
imports: from __future__ import division
  import os
  from unittest import TestCase
  from nose_parameterized import parameterized
  from numpy.testing import assert_allclose, assert_almost_equal
  from pandas.util.testing import assert_series_equal
  import numpy
  import pandas
  from ..None import timeseries
  from pyfolio.utils import to_utc, to_series
  import gzip
label_desc: Use image node_id 6 for calling the TestDrawdown obj's underlying member method code with example usage: obj.test_top_drawdowns(returns, top, expected) without return types