code: def test_targets_property():
      source_uri = "test:/my/test/uri"
      source = TestDatasetSource._resolve(source_uri)
      df_no_targets = pd.DataFrame([1, 2, 3], columns=["Numbers"])
      dataset_no_targets = PandasDataset(
          df=df_no_targets,
          source=source,
          name="testname",
      )
      assert dataset_no_targets._targets is None
      df_with_targets = pd.DataFrame(
          [[1, 2, 3], [1, 2, 3]], columns=["a", "b", "c"]
      )
      dataset_with_targets = PandasDataset(
          df=df_with_targets,
          source=source,
          targets="c",
          name="testname",
      )
      assert dataset_with_targets._targets == "c"
  
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 5 for calling a global function with example usage: test_targets_property() without return types