class_docstr: Test that plugins are working.
docstr: Test that enhancements from a plugin are available.
docstr_tok: ["Test","that","enhancements","from","a","plugin","are","available","."]
code: def test_plugin_enhancements_generic_sensor(
      self, fake_enh_plugin_etc_path, sensor_name, exp_result
  ):
      """Test that enhancements from a plugin are available."""
      import dask.array as da
      import numpy as np
      import xarray as xr
      from trollimage.xrimage import XRImage
  
      from satpy.writers import Enhancer
  
      data_arr = xr.DataArray(
          da.zeros((10, 10), dtype=np.float32),
          dims=("y", "x"),
          attrs={
              "sensor": {sensor_name},
              "name": "fake_name",
          },
      )
      img = XRImage(data_arr)
  
      enh = Enhancer()
      enh.add_sensor_enhancements(data_arr.attrs["sensor"])
      enh.apply(img, **img.data.attrs)
  
      res_data = img.data.values
      np.testing.assert_allclose(res_data, exp_result)
  
imports: from __future__ import annotations
  import contextlib
  import os
  import sys
  import unittest
  from importlib.metadata import EntryPoint
  from pathlib import Path
  from typing import Callable, Iterator
  from unittest import mock
  import pytest
  import satpy
  from satpy import DatasetDict
  from satpy._config import cached_entry_point
  from satpy.composites.config_loader import load_compositor_configs_for_sensors
label_desc: Use image node_id 10 for calling the TestPluginsConfigs obj's underlying member method code with example usage: obj.test_plugin_enhancements_generic_sensor(fake_enh_plugin_etc_path, sensor_name, exp_result) without return types