code: def enable_rnn_executor(self, net, value, forward_only):
      num_found = 0
      for op in net.Proto().op:
          if op.type.startswith("RecurrentNetwork"):
              for arg in op.arg:
                  if arg.name == "enable_rnn_executor":
                      arg.i = value
                      num_found += 1
      # This sanity check is so that if someone changes the
      # enable_rnn_executor parameter name, the test will
      # start failing as this function will become defective.
      self.assertEqual(1 if forward_only else 2, num_found)
  
file_path: pytorch/caffe2/python/operator_test/recurrent_net_executor_test.py
imports: from caffe2.proto import caffe2_pb2
  from caffe2.python import model_helper, workspace, core, rnn_cell, test_util
  from caffe2.python.attention import AttentionType
  import numpy
  import unittest
  import caffe2.python.hypothesis_test_util
  import hypothesis.strategies
  from hypothesis import given, settings
label_desc: Use image node_id 7 for calling the TestRNNExecutor obj's underlying member method code with example usage: obj.enable_rnn_executor(net, value, forward_only) without return types