code: def test_mask_unconnected_polygon(samples_source):
      annotations_dict = json.loads(
          (samples_source / "annotations.json").read_bytes()
      )
      annotation = [
          o
          for o in annotations_dict["annotations"]
          if o["id"] == 257712
      ][0]
  
      poly = Polygon(annotation["segmentation"])
  
      h, w = 427, 640
      mask = poly.to_erles(h, w).to_mask(h, w)
  
      assert mask.shape == (1, h, w)
  
file_path: icevision/tests/core/test_mask.py
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 10 for calling a global function with example usage: test_mask_unconnected_polygon(samples_source) without return types