code: def tear_down():
      yield
  
      # Clear cached table infos. When the datasource event from Spark arrives but there is no
      # active run (e.g. the even comes with some delay), MLflow keep them in memory and logs them to
      # the next **and any successive active run** (ref: PR #4086).
      # However, this behavior is not desirable during tests, as we don't want any tests to be
      # affected by the previous test. Hence, this fixture is executed on every test function
      # to clear the accumulated table infos stored in the global context.
      clear_table_infos()
  
file_path: mlflow/tests/spark/autologging/conftest.py
imports: import os
  import tempfile
  import pytest
  from pyspark.sql import Row
  from pyspark.sql.types import IntegerType, StringType, StructField, StructType
  from mlflow._spark_autologging import clear_table_infos
  from tests.spark.autologging.utils import _get_or_create_spark_session
label_desc: Use image node_id 7 for calling a global function with example usage: tear_down() without return types