code: def _get_expected_table_info_row(path, data_format, version=None):
      expected_path = f"file:{path}"
      if version is None:
          return f"path={expected_path},format={data_format}"
      return (
          f"path={expected_path},version={version},format={data_format}"
      )
  
file_path: mlflow/tests/spark/autologging/datasource/test_spark_datasource_autologging.py
imports: import time
  from unittest import mock
  from pyspark.sql import Row
  from pyspark.sql.types import IntegerType, StructField, StructType
  import mlflow
  import mlflow.spark
  from mlflow._spark_autologging import _SPARK_TABLE_INFO_TAG_NAME
  from mlflow.utils.validation import MAX_TAG_VAL_LENGTH
  from tests.spark.autologging.utils import _assert_spark_data_logged
  from tests.tracking.integration_test_utils import _init_server
label_desc: Use image node_id 1 for calling a global function with example usage: _get_expected_table_info_row(path, data_format, version) and returns: str, expected_path, str, version, str, data_format, str, expected_path, str, data_format