code: def test_pandas_series(ford_2012):
      import pandas
  
      input_df = pandas.DataFrame(ford_2012)
      output = talib.SMA(input_df["close"], 10)
      expected = pandas.Series(
          func.SMA(ford_2012["close"], 10), index=input_df.index
      )
      pandas.testing.assert_series_equal(output, expected)
  
      # Test kwargs
      output = talib.SMA(real=input_df["close"], timeperiod=10)
      pandas.testing.assert_series_equal(output, expected)
  
      # Test talib.func API
      output = func.SMA(input_df["close"], timeperiod=10)
      pandas.testing.assert_series_equal(output, expected)
  
      # Test multiple outputs such as from BBANDS
      _, output, _ = talib.BBANDS(input_df["close"], 10)
      expected = pandas.Series(
          func.BBANDS(ford_2012["close"], 10)[1], index=input_df.index
      )
      pandas.testing.assert_series_equal(output, expected)
  
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 3 for calling a global function with example usage: test_pandas_series(ford_2012) without return types