code: def test_get_dir_size_and_count(tmpdir: Path, size):
      data = os.urandom(size)
      with open(os.path.join(tmpdir, "a"), "wb") as f:
          f.write(data)
      with open(os.path.join(tmpdir, "b"), "wb") as f:
          f.write(data)
      assert _get_dir_size_and_count(tmpdir, "a") == (size, 1)
  
file_path: pytorch-lightning/tests/tests_app/source_code/test_tar.py
imports: import math
  import os
  import tarfile
  from pathlib import Path
  import pytest
  from lightning.app.source_code.tar import MAX_SPLIT_COUNT, _get_dir_size_and_count, _get_split_size, _tar_path
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_dir_size_and_count(tmpdir, size) without return types