code: def test_erosion8():
      # erosion8
      mop = ImageMorph.MorphOp(op_name="erosion8")
      count, Aout = mop.apply(A)
      assert count == 8
      assert_img_equal_img_string(
          Aout,
          """
                                       .......
                                       .......
                                       .......
                                       ...1...
                                       .......
                                       .......
                                       .......
                                       """,
      )
  
imports: from __future__ import annotations
  import pytest
  from PIL import Image, ImageMorph, _imagingmorph
  from .helper import assert_image_equal_tofile, hopper
label_desc: Use image node_id 8 for calling a global function with example usage: test_erosion8() without return types