code: def test_identifier_label_correlation_with_extracted_from_dataframe_datatime_index():
      df, expected = generate_dataframe_and_expected()
      df.set_index("x2", inplace=True)
      dataset = Dataset(
          df=df,
          label="label",
          set_datetime_from_dataframe_index=True,
          cat_features=[],
      )
      result = IdentifierLabelCorrelation().run(dataset=dataset)
      for key, value in result.value.items():
          assert_that(key, is_in(expected.keys()))
          assert_that(value, close_to(expected[key], 0.1))
  
file_path: deepchecks/tests/tabular/checks/integrity/identifier_label_correlation_test.py
imports: import numpy
  import pandas
  from hamcrest import assert_that, calling, close_to, greater_than, has_items, has_length, is_in, raises
  from deepchecks.core.errors import DatasetValidationError, DeepchecksNotSupportedError, DeepchecksValueError
  from deepchecks.tabular.checks.data_integrity.identifier_label_correlation import IdentifierLabelCorrelation
  from deepchecks.tabular.dataset import Dataset
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 5 for calling a global function with example usage: test_identifier_label_correlation_with_extracted_from_dataframe_datatime_index() without return types