code: def test_parameters():
      stoch = abstract.Function("STOCH")
      expected = OrderedDict(
          [
              ("fastk_period", 5),
              ("slowk_period", 3),
              ("slowk_matype", 0),
              ("slowd_period", 3),
              ("slowd_matype", 0),
          ]
      )
      assert expected == stoch.parameters
  
      stoch.parameters = {"fastk_period": 10}
      expected["fastk_period"] = 10
      assert expected == stoch.parameters
  
      stoch.parameters = {"slowk_period": 8, "slowd_period": 5}
      expected["slowk_period"] = 8
      expected["slowd_period"] = 5
      assert expected == stoch.parameters
  
      stoch.parameters = {"slowd_matype": talib.MA_Type.T3}
      expected["slowd_matype"] = 8
      assert expected == stoch.parameters
  
      stoch.parameters = {
          "slowk_matype": talib.MA_Type.WMA,
          "slowd_matype": talib.MA_Type.EMA,
      }
      expected["slowk_matype"] = 2
      expected["slowd_matype"] = 1
      assert expected == stoch.parameters
  
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 11 for calling a global function with example usage: test_parameters() without return types