code: def test_skipping_slice(caplog, data_dir):
      """Collection filters out all but one warning message"""
      with fiona.open(
          os.path.join(data_dir, "issue627.geojson")
      ) as src:
          results = list(src)
      assert len(results) == 3
      assert not any(["skip_me" in f["properties"] for f in results])
      assert (
          len(
              [
                  rec
                  for rec in caplog.records
                  if rec.getMessage().startswith("Skipping")
              ]
          )
          == 1
      )
  
file_path: Fiona/tests/test_logutils.py
imports: import logging
  import os
  import fiona
  from fiona.logutils import LogFiltering, FieldSkipLogFilter
label_desc: Use image node_id 2 for calling a global function with example usage: test_skipping_slice(caplog, data_dir) without return types