code: def test_expected_name_is_used():
      source_uri = "test:/my/test/uri"
      source = TestDatasetSource._resolve(source_uri)
  
      dataset_without_name = TestDataset(
          data_list=[1, 2, 3], source=source
      )
      assert dataset_without_name.name == "dataset"
  
      dataset_with_name = TestDataset(
          data_list=[1, 2, 3], source=source, name="testname"
      )
      assert dataset_with_name.name == "testname"
  
imports: import json
  from mlflow.types.schema import Schema
  from tests.resources.data.dataset import TestDataset
  from tests.resources.data.dataset_source import TestDatasetSource
label_desc: Use image node_id 3 for calling a global function with example usage: test_expected_name_is_used() without return types