code: def dataset_from_dict(d: dict, date_name: str = None) -> Dataset:
      dataframe = pd.DataFrame(data=d)
      return Dataset(dataframe, datetime_name=date_name)
  
imports: from datetime import datetime
  import numpy
  import pandas
  from hamcrest import assert_that, calling, close_to, equal_to, greater_than, has_items, has_length, raises
  from deepchecks.core.errors import DatasetValidationError, DeepchecksValueError
  from deepchecks.tabular.checks.train_test_validation import DateTrainTestLeakageDuplicates, DateTrainTestLeakageOverlap
  from deepchecks.tabular.dataset import Dataset
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 1 for calling a global function with example usage: dataset_from_dict(d, date_name) and returns: Dataset