code: def test_polynomial__linear() -> None:
      # Test on a 3D linear function, where we can easily work out the maths.
      p = Polynomial(degree=1, input_dim=3, w=[1.0, 2.0, 3.0, 4.0])
      X = np.array([1.0, 2.0, 3.0])
      Y = p(X)
      assert_allclose([1.0 + 2.0 * 3.0 + 3.0 * 2.0 + 4.0 * 1.0], Y)
  
imports: from typing import Any, Sequence, Tuple, Type
  import numpy
  import pytest
  import tensorflow_probability
  from check_shapes import check_shapes
  from numpy.testing import assert_allclose
  import gpflow
  from gpflow.base import AnyNDArray, TensorType
  from gpflow.config import default_int
  from gpflow.functions import Additive, Constant, Linear, MeanFunction, Polynomial, Product, SwitchedMeanFunction, Zero
  from gpflow.inducing_variables import InducingPoints
label_desc: Use image node_id 10 for calling a global function with example usage: test_polynomial__linear() without return types