code: def test_from_spark_table_name_with_version(spark_session, df):
      df_spark = spark_session.createDataFrame(df)
      df_spark.createOrReplaceTempView("my_spark_table")
  
      with pytest.raises(
          MlflowException,
          match="Version '1' was specified, but could not find a Delta table "
          "with name 'my_spark_table'",
      ):
          mlflow.data.from_spark(
              df_spark, table_name="my_spark_table", version=1
          )
  
imports: import json
  import os
  import pandas
  import pytest
  import mlflow.data
  from mlflow.data.code_dataset_source import CodeDatasetSource
  from mlflow.data.delta_dataset_source import DeltaDatasetSource
  from mlflow.data.spark_dataset import SparkDataset
  from mlflow.data.spark_dataset_source import SparkDatasetSource
  from mlflow.exceptions import MlflowException
  from mlflow.models.evaluation.base import EvaluationDataset
  from mlflow.types.schema import Schema
  from mlflow.types.utils import _infer_schema
label_desc: Use image node_id 16 for calling a global function with example usage: test_from_spark_table_name_with_version(spark_session, df) without return types