code: def pytest_collection_finish(session):
      if session.config.option.dump_pyannotate:
          from pyannotate_runtime import collect_types
  
          lib_sqlalchemy = os.path.abspath("lib/sqlalchemy")
  
          def _filter(filename):
              filename = os.path.normpath(os.path.abspath(filename))
              if "lib/sqlalchemy" not in os.path.commonpath(
                  [filename, lib_sqlalchemy]
              ):
                  return None
              if "testing" in filename:
                  return None
  
              return filename
  
          collect_types.init_types_collection(filter_filename=_filter)
  
imports: from __future__ import annotations
  import argparse
  import collections
  from functools import update_wrapper
  import inspect
  import itertools
  import operator
  import os
  import re
  import sys
  from typing import TYPE_CHECKING
  import uuid
  import pytest
label_desc: Use image node_id 8 for calling a global function with example usage: pytest_collection_finish(session) and returns: filename, None, None