code: def test_max_drawdown(self):
      result = pandas_ta.max_drawdown(self.close)
      self.assertIsInstance(result, float)
      self.assertGreaterEqual(result, 0)
  
      result = pandas_ta.max_drawdown(self.close, method="percent")
      self.assertIsInstance(result, float)
      self.assertGreaterEqual(result, 0)
  
      result = pandas_ta.max_drawdown(self.close, method="log")
      self.assertIsInstance(result, float)
      self.assertGreaterEqual(result, 0)
  
      result = pandas_ta.max_drawdown(self.close, all=True)
      self.assertIsInstance(result, dict)
      self.assertIsInstance(result["dollar"], float)
      self.assertIsInstance(result["percent"], float)
      self.assertIsInstance(result["log"], float)
  
imports: from unittest import skip, TestCase
  from pandas import DataFrame
  from .config import sample_data
  from .context import pandas_ta
label_desc: Use image node_id 11 for calling the TestUtilityMetrics obj's underlying member method code with example usage: obj.test_max_drawdown() without return types