code: def test_get_data_home():
      dl = DataLoader()
      # Default parameters
      data_home = dl.get_data_home()
      assert os.path.basename(os.path.normpath(data_home)) == "data"
  
      # With subdirectory
      data_home = dl.get_data_home(data_sub_dir="daily")
      assert os.path.basename(os.path.normpath(data_home)) == "daily"
  
      # Error due to non existing folder
      data_dir = "/home/data"
      with pytest.raises(
          ValueError,
          match=f"Requested data directory '{data_dir}' does not exist.",
      ):
          dl.get_data_home(data_dir=data_dir)
  
imports: import os
  import re
  import pandas
  import pytest
  from greykite.common.constants import TIME_COL
  from greykite.common.data_loader import DataLoader
  from greykite.common.testing_utils import assert_equal
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_data_home() without return types