class_docstr: Test the private helper functions.
class_docstr_tok: ["Test","the","private","helper","functions","."]
docstr: Test the _scalar function correctly computes the parameter scalar.
docstr_tok: ["Test","the","_scalar","function","correctly","computes","the","parameter","scalar","."]
code: def test_private_scalar(self, order, result):
      """Test the _scalar function correctly computes the parameter scalar."""
      s = _scalar(order)
      assert qnp.isclose(s, result)
  
imports: import copy
  from functools import reduce
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.math import allclose, get_interface
  from pennylane.templates.subroutines.trotter import _recursive_expression, _scalar
label_desc: Use image node_id 1 for calling the TestPrivateFunctions obj's underlying member method code with example usage: obj.test_private_scalar(order, result) without return types