class_docstr: Testcase for dataset metadata.
class_docstr_tok: ["Testcase","for","dataset","metadata","."]
code: def _assert_earth_mask_equal(self, metadata, expected):
      earth_mask_tst = metadata.pop("earth_mask")
      earth_mask_ref = expected.pop("earth_mask")
      xr.testing.assert_allclose(earth_mask_tst, earth_mask_ref)
  
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 11 for calling the TestMetadata obj's underlying member method code with example usage: obj._assert_earth_mask_equal(metadata, expected) without return types