code: def test_data_type_error(data: typing.Any, error: typing.Any) -> None:
      with pytest.raises(error):
          data_length(data)
  
imports: import logging
  import queue
  import typing
  from logging import handlers
  import numpy
  import pytest
  import torch
  import determined
  from determined.pytorch import data_length, samplers, to_device
label_desc: Use image node_id 15 for calling a global function with example usage: test_data_type_error(data, error) without return types