code: def test_parameter_assign_validation() -> None:
      with pytest.raises(tf.errors.InvalidArgumentError):
          param = gpflow.Parameter(0.0, transform=positive())
  
      param = gpflow.Parameter(0.1, transform=positive())
      param.assign(0.2)
      with pytest.raises(tf.errors.InvalidArgumentError):
          param.assign(0.0)
  
imports: import tempfile
  from typing import Sequence
  import numpy
  import pytest
  import tensorflow
  import tensorflow_probability
  import gpflow
  from gpflow.base import AnyNDArray, PriorOn, TensorData
  from gpflow.config import default_float
  from gpflow.utilities import positive, triangular
label_desc: Use image node_id 1 for calling a global function with example usage: test_parameter_assign_validation() without return types