code: def test_adapt_invalid_data_type() -> None:
      seqs = tf_utils.make_xor_data_sequences()
      test = keras._adapt_data_from_data_loader(seqs[1], batch_size=1)
      with pytest.raises(det.errors.InvalidDataTypeException) as err:
          keras._adapt_data_from_data_loader((None, test), batch_size=1)
          assert err is not None
  
imports: from typing import Tuple
  import numpy
  import pytest
  from tensorflow.keras.utils import Sequence
  import determined
  from determined import keras
  from determined.common import check
  from tests.experiment import tf_utils
label_desc: Use image node_id 4 for calling a global function with example usage: test_adapt_invalid_data_type() without return types