code: def test_bad_bind_new_parameters():
      """Test a function that is not working with bind_new_parameters."""
  
      class NoBindNewParameters(Operator):
          num_params = 1
  
          def __init__(self, x, wires):
              super().__init__(x, wires)
              self.data = (
                  1.0,
              )  # different x will not change data attribute
  
      with pytest.raises(
          AssertionError,
          match=r"bind_new_parameters must be able to update the operator",
      ):
          assert_valid(
              NoBindNewParameters(2.0, wires=0), skip_pickle=True
          )
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.operation import Operator
  from pennylane.ops.functions import assert_valid
label_desc: Use image node_id 4 for calling a global function with example usage: test_bad_bind_new_parameters() without return types