code: def test_raise_bad_data_error(self, bad_data):
      with pytest.raises(TypeError):
          DataProcessor.to_tensor(bad_data)
  
file_path: benchmark_VAE/tests/test_preprocessing.py
imports: import os
  import numpy
  import pytest
  import torch
  from pythae.data.datasets import BaseDataset
  from pythae.data.preprocessors import DataProcessor
label_desc: Use image node_id 3 for calling the Test_Format_Data obj's underlying member method code with example usage: obj.test_raise_bad_data_error(bad_data) without return types