class_docstr: Create image or video batch.
class_docstr_tok: ["Create","image","or","video","batch","."]
code: def get_data(self):
      temporal_index = () if self.image_data else (2,)
      if self.channels_first:
          data_shape = (
              (self.batch_size,)
              + self.channels
              + temporal_index
              + (8, 12)
          )
      else:
          data_shape = (
              (self.batch_size,)
              + temporal_index
              + (8, 12)
              + self.channels
          )
      return (255 * np.ones(data_shape)).astype(ART_NUMPY_DTYPE)
  
file_path: adversarial-robustness-toolbox/tests/defences/preprocessor/test_jpeg_compression.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from art.config import ART_NUMPY_DTYPE
  from art.defences.preprocessor import JpegCompression
  from tests.utils import ARTTestException
label_desc: Use image node_id 2 for calling the DataGenerator obj's underlying member method code with example usage: obj.get_data() and returns: unknown