code: def test_STOCH(ford_2012):
      # check defaults match
      expected_k, expected_d = func.STOCH(
          ford_2012["high"], ford_2012["low"], ford_2012["close"]
      )  # 5, 3, 0, 3, 0
      got_k, got_d = abstract.Function("stoch", ford_2012).outputs
      assert_array_equal(expected_k, got_k)
      assert_array_equal(expected_d, got_d)
  
      expected_k, expected_d = func.STOCH(
          ford_2012["high"], ford_2012["low"], ford_2012["close"]
      )
      got_k, got_d = abstract.Function("stoch", ford_2012)(
          5, 3, 0, 3, 0
      )
      assert_array_equal(expected_k, got_k)
      assert_array_equal(expected_d, got_d)
  
      expected_k, expected_d = func.STOCH(
          ford_2012["high"], ford_2012["low"], ford_2012["close"], 15
      )
      got_k, got_d = abstract.Function("stoch", ford_2012)(
          15, 5, 0, 5, 0
      )
      assert_array_not_equal(expected_k, got_k)
      assert_array_not_equal(expected_d, got_d)
  
      expected_k, expected_d = func.STOCH(
          ford_2012["high"],
          ford_2012["low"],
          ford_2012["close"],
          15,
          5,
          1,
          5,
          1,
      )
      got_k, got_d = abstract.Function("stoch", ford_2012)(
          15, 5, 1, 5, 1
      )
      assert_array_equal(expected_k, got_k)
      assert_array_equal(expected_d, got_d)
  
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 5 for calling a global function with example usage: test_STOCH(ford_2012) without return types