code: def test_order_method_style_forwarding(
      self, order_method, order_param
  ):
      # Test that we correctly forward values passed via `style` to Order
      # objects.
      def initialize(context):
          api.schedule_function(
              func=do_order,
              date_rule=api.date_rules.every_day(),
              time_rule=api.time_rules.market_open(),
          )
  
      def do_order(context, data):
          assert len(context.portfolio.positions.keys()) == 0
  
          order_method(
              self.EQUITY,
              order_param,
              style=StopLimitOrder(10, 10, asset=self.EQUITY),
          )
  
          assert len(context.blotter.open_orders[self.EQUITY]) == 1
          result = context.blotter.open_orders[self.EQUITY][0]
          assert result.limit == 10
          assert result.stop == 10
  
      # We only need to run for a single day for this test.
      self.run_algorithm(
          initialize=initialize,
          sim_params=self.sim_params.create_new(
              start_session=self.END_DATE,
              end_session=self.END_DATE,
          ),
      )
  
imports: from nose_parameterized import parameterized
  import pandas
  from zipline.algorithm import TradingAlgorithm
  import zipline.api
  import zipline.errors
  from zipline.finance.execution import StopLimitOrder
  import zipline.testing.fixtures
  from zipline.testing.predicates import assert_equal
  import zipline.test_algorithms
label_desc: Use image node_id 8 for calling the TestOrderMethods obj's underlying member method code with example usage: obj.test_order_method_style_forwarding(order_method, order_param) without return types