class_docstr: Testcase for dataset metadata.
class_docstr_tok: ["Testcase","for","dataset","metadata","."]
docstr: Create a fake dataset.
code: def dataset(self, lons_lats, channel_id):
      """Create a fake dataset."""
      lon, lat = lons_lats
      data = xr.DataArray(
          [[[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]]],
          dims=("time", "yc", "xc"),
      )
      time = xr.DataArray(
          [
              np.datetime64("2018-01-01 12:00:00").astype(
                  "datetime64[ns]"
              )
          ],
          dims="time",
      )
      bands = xr.DataArray([channel_id], dims="bands")
      return xr.Dataset(
          {
              "data": data,
              "lon": lon,
              "lat": lat,
              "time": time,
              "bands": bands,
          },
          attrs={"Satellite Sensor": "G-15"},
      )
  
imports: import datetime
  import unittest
  from unittest import mock
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition
  from satpy.readers.goes_imager_nc import is_vis_channel
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 5 for calling the TestMetadata obj's underlying member method code with example usage: obj.dataset(lons_lats, channel_id) and returns: xr