class_docstr: Testcase for dataset metadata.
class_docstr_tok: ["Testcase","for","dataset","metadata","."]
docstr: Test dataset metadata.
code: def test_metadata(self, mocked_file_handler, expected):
      """Test dataset metadata."""
      metadata = mocked_file_handler.meta
      self._assert_earth_mask_equal(metadata, expected)
      assert metadata == expected
  
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 10 for calling the TestMetadata obj's underlying member method code with example usage: obj.test_metadata(mocked_file_handler, expected) without return types