class_docstr: Test that coefficients are properly computed when QNodes use different interfaces.
class_docstr_tok: ["Test","that","coefficients","are","properly","computed","when","QNodes","use","different","interfaces","."]
docstr: Test that coefficients are correctly computed when using the Tensorflow interface.
docstr_tok: ["Test","that","coefficients","are","correctly","computed","when","using","the","Tensorflow","interface","."]
code: def test_coefficients_tf_interface(self):
      """Test that coefficients are correctly computed when using the Tensorflow interface."""
      import tensorflow as tf
  
      qnode = qml.QNode(self.circuit, self.dev)
  
      weights = tf.Variable([0.5, 0.2])
  
      obtained_result = coefficients(partial(qnode, weights), 2, 1)
  
      assert np.allclose(obtained_result, self.expected_result)
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.fourier import coefficients
label_desc: Use image node_id 2 for calling the TestInterfaces obj's underlying member method code with example usage: obj.test_coefficients_tf_interface() without return types