code: def test_cdl_pattern(self):
      result = pandas_ta.cdl_pattern(
          self.open, self.high, self.low, self.close, name="all"
      )
      self.assertIsInstance(result, DataFrame)
      self.assertEqual(
          len(result.columns), len(pandas_ta.CDL_PATTERN_NAMES)
      )
  
      result = pandas_ta.cdl_pattern(
          self.open, self.high, self.low, self.close, name="doji"
      )
      self.assertIsInstance(result, DataFrame)
  
      result = pandas_ta.cdl_pattern(
          self.open,
          self.high,
          self.low,
          self.close,
          name=["doji", "inside"],
      )
      self.assertIsInstance(result, DataFrame)
  
file_path: pandas-ta/tests/test_indicator_candle.py
imports: from .config import error_analysis, sample_data, CORRELATION, CORRELATION_THRESHOLD, VERBOSE
  from .context import pandas_ta
  from unittest import TestCase, skip
  import pandas.testing
  from pandas import DataFrame, Series
  import talib
label_desc: Use image node_id 6 for calling the TestCandle obj's underlying member method code with example usage: obj.test_cdl_pattern() without return types