code: def test_shape__inconsistent(none_shape: bool) -> None:
      kwargs = {"shape": tf.TensorShape(None)} if none_shape else {}
      iv = giv.SeparateIndependentInducingVariables(
          [
              giv.InducingPoints(
                  tf.Variable(tf.ones((5, 3)), **kwargs)
              ),
              giv.InducingPoints(
                  tf.Variable(tf.ones((7, 3)), **kwargs)
              ),
          ]
      )
      assert get_shape(iv, TestContext()) is None
      with pytest.raises(tf.errors.InvalidArgumentError):
          iv.num_inducing
      with pytest.raises(tf.errors.InvalidArgumentError):
          len(iv)
  
file_path: GPflow/tests/gpflow/test_inducing_variables.py
imports: from dataclasses import dataclass
  from typing import Callable, Optional, Tuple
  import numpy
  import pytest
  import tensorflow
  from check_shapes import get_shape
  from check_shapes.error_contexts import ErrorContext, MessageBuilder
  import gpflow
  import gpflow.inducing_variables
label_desc: Use image node_id 3 for calling a global function with example usage: test_shape__inconsistent(none_shape) without return types