code: def test_helper_with_variables_fails() -> None:
      variable = tf.Variable(0.1)
      with pytest.raises(
          ValueError,
          match=r"`parameters` should only contain gpflow.Parameter objects with priors",
      ):
          gpflow.optimizers.SamplingHelper(
              lambda: variable**2, (variable,)
          )
  
imports: from typing import Tuple
  import numpy
  import pytest
  import tensorflow
  import tensorflow_probability
  from check_shapes import ShapeChecker, check_shapes
  from tensorflow_probability.python.distributions import Gamma, Uniform
  import gpflow
  from gpflow.base import AnyNDArray, PriorOn
  from gpflow.models import GPR
  from gpflow.utilities import to_default_float
label_desc: Use image node_id 9 for calling a global function with example usage: test_helper_with_variables_fails() without return types