code: def _assert_spark_data_logged(run, path, data_format, version=None):
      assert _SPARK_TABLE_INFO_TAG_NAME in run.data.tags
      table_info_tag = run.data.tags[_SPARK_TABLE_INFO_TAG_NAME]
      expected_tag = _get_expected_table_info_row(
          path, data_format, version
      )
      assert (
          table_info_tag == expected_tag
      ), f"Got: {table_info_tag} Expected: {expected_tag}"
  
file_path: mlflow/tests/spark/autologging/utils.py
imports: import os
  from pyspark.sql import SparkSession
  import mlflow
  from mlflow._spark_autologging import _SPARK_TABLE_INFO_TAG_NAME
label_desc: Use image node_id 3 for calling a global function with example usage: _assert_spark_data_logged(run, path, data_format, version) without return types