class_docstr: Tests `_iterate_shift_rule_with_multipliers` to produce the correct rules.
class_docstr_tok: ["Tests","`","_iterate_shift_rule_with_multipliers","`","to","produce","the","correct","rules","."]
docstr: Test first order iteration of a rule with multipliers.
code: def test_first_order(self, period):
      """Test first order iteration of a rule with multipliers."""
      rule = [(-0.9, 0.7, -0.2), (0.2, 1.2, 0.4)]
      iterated_rule = _iterate_shift_rule_with_multipliers(
          rule, 1, period
      )
      assert np.allclose(iterated_rule, rule)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.gradients.general_shift_rules import eigvals_to_frequencies, frequencies_to_period, generate_shift_rule, _get_shift_rule, generate_multi_shift_rule, generate_shifted_tapes, generate_multishifted_tapes, _iterate_shift_rule_with_multipliers
label_desc: Use image node_id 1 for calling the TestIterateShiftRuleWithMultipliers obj's underlying member method code with example usage: obj.test_first_order(period) without return types