code: def test_pandas(ford_2012):
      import pandas
  
      input_df = pandas.DataFrame(ford_2012)
      input_dict = dict(
          (k, pandas.Series(v)) for k, v in ford_2012.items()
      )
  
      expected_k, expected_d = func.STOCH(
          ford_2012["high"], ford_2012["low"], ford_2012["close"]
      )  # 5, 3, 0, 3, 0
      output = abstract.Function("stoch", input_df).outputs
      assert isinstance(output, pandas.DataFrame)
      assert_array_equal(expected_k, output["slowk"])
      assert_array_equal(expected_d, output["slowd"])
      output = abstract.Function("stoch", input_dict).outputs
      assert isinstance(output, list)
      assert_array_equal(expected_k, output[0])
      assert_array_equal(expected_d, output[1])
  
      expected = func.SMA(ford_2012["close"], 10)
      output = abstract.Function("sma", input_df, 10).outputs
      assert isinstance(output, pandas.Series)
      assert_array_equal(expected, output)
      output = abstract.Function("sma", input_dict, 10).outputs
      assert isinstance(output, np.ndarray)
      assert_array_equal(expected, output)
  
imports: import copy
  import re
  import threading
  import time
  import numpy
  import pytest
  from numpy.testing import assert_array_equal, assert_raises
  import talib
  from talib import abstract, func
label_desc: Use image node_id 2 for calling a global function with example usage: test_pandas(ford_2012) without return types