class_docstr: Test the MITIFF Writer class.
docstr: Create a single test dataset.
docstr_tok: ["Create","a","single","test","dataset","."]
code: def _get_test_dataset_with_bad_values(self, bands=3):
      """Create a single test dataset."""
      from datetime import datetime
  
      import xarray as xr
      from pyproj import CRS
      from pyresample.geometry import AreaDefinition
  
      area_def = AreaDefinition(
          "test",
          "test",
          "test",
          CRS(
              "+proj=stere +datum=WGS84 +ellps=WGS84 +lon_0=0. +lat_0=90 +lat_ts=60 +units=km"
          ),
          100,
          200,
          (-1000.0, -1500.0, 1000.0, 1500.0),
      )
  
      data = np.arange(-210, 790, 100).reshape((2, 5)) * 0.95
      data /= 5.605
      data[0, 0] = np.nan  # need a nan value
      data[0, 1] = 0.0  # Need a 0 value
  
      rgb_data = np.stack([data, data, data])
      ds1 = xr.DataArray(
          rgb_data,
          dims=("bands", "y", "x"),
          attrs={
              "name": "test",
              "start_time": datetime.utcnow(),
              "platform_name": "TEST_PLATFORM_NAME",
              "sensor": "TEST_SENSOR_NAME",
              "area": area_def,
              "prerequisites": ["1", "2", "3"],
          },
      )
      return ds1
  
imports: import logging
  import os
  import unittest
  import numpy
  from PIL import Image
label_desc: Use image node_id 8 for calling the TestMITIFFWriter obj's underlying member method code with example usage: obj._get_test_dataset_with_bad_values(bands) and returns: ds1