code: def test_added_deep(tmp_dir, scm, dvc):
      tmp_dir.gen({"datas": {"data": {"file": "text"}}})
      dvc.add(os.path.join("datas", "data"))
  
      assert dvc.diff() == {
          "added": [
              {
                  "path": os.path.join("datas", "data" + os.sep),
                  "hash": "0dab3fae569586d4c33272e5011605bf.dir",
              },
              {
                  "path": os.path.join("datas", "data", "file"),
                  "hash": "1cb251ec0d568de6a929b520c4aed8d1",
              },
          ],
          "deleted": [],
          "modified": [],
          "not in cache": [],
          "renamed": [],
      }
  
imports: import hashlib
  import os
  import pytest
  from funcy import first
  from dvc.exceptions import DvcException
  from dvc.utils.fs import remove
label_desc: Use image node_id 5 for calling a global function with example usage: test_added_deep(tmp_dir, scm, dvc) without return types