code: def test_with_invalid_targets():
      source_uri = "test:/my/test/uri"
      source = TestDatasetSource._resolve(source_uri)
      df = pd.DataFrame([[1, 2, 3], [1, 2, 3]], columns=["a", "b", "c"])
      with pytest.raises(
          MlflowException,
          match="The specified pandas DataFrame does not contain the specified targets column 'd'.",
      ):
          PandasDataset(
              df=df,
              source=source,
              targets="d",
              name="testname",
          )
  
imports: import json
  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.filesystem_dataset_source import FileSystemDatasetSource
  from mlflow.data.pandas_dataset import PandasDataset
  from mlflow.data.pyfunc_dataset_mixin import PyFuncInputsOutputs
  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
  from tests.resources.data.dataset_source import TestDatasetSource
label_desc: Use image node_id 6 for calling a global function with example usage: test_with_invalid_targets() without return types