code: def test_local_dir():
      with patch(
          "builtins.open", mock_open(read_data="data")
      ) as mock_file:
          dd.load_data("data/Addresses", encoding="latin1")
          mock_file.assert_called_with(
              os.path.join("data/Addresses", "file.txt"),
              "r",
              encoding="latin1",
          )
  
file_path: data-describe/tests/test_load_data.py
imports: import re
  import os
  from unittest.mock import patch, mock_open
  import tempfile
  import pandas
  import pytest
  import data_describe
  from data_describe.misc.load_data import download_gcs_file, _read_file_type
label_desc: Use image node_id 2 for calling a global function with example usage: test_local_dir() without return types