code: def test_dumpd_cloud_versioning_dir(mocker):
      stage = mocker.MagicMock()
      stage.repo.fs.version_aware = False
      stage.repo.fs.PARAM_CHECKSUM = "md5"
      files = [
          {
              "size": 3,
              "version_id": "WYRG4BglP7pD.gEoJP6a4AqOhl.FRA.h",
              "etag": "acbd18db4cc2f85cedef654fccc4a4d8",
              "md5": "acbd18db4cc2f85cedef654fccc4a4d8",
              "relpath": "bar",
          },
          {
              "size": 3,
              "version_id": "0vL53tFVY5vVAoJ4HG2jCS1mEcohDPE0",
              "etag": "acbd18db4cc2f85cedef654fccc4a4d8",
              "md5": "acbd18db4cc2f85cedef654fccc4a4d8",
              "relpath": "foo",
          },
      ]
      out = Output(stage, "path", files=files)
  
      dumpd = out.dumpd()
      assert dumpd == {"path": "path", "hash": "md5", "files": files}
  
file_path: dvc/tests/unit/output/test_output.py
imports: import logging
  import os
  import pytest
  from funcy import first
  from voluptuous import MultipleInvalid, Schema
  from dvc.fs import RemoteMissingDepsError
  from dvc.ignore import _no_match
  from dvc.output import CHECKSUM_SCHEMA, Output
  from dvc.stage import Stage
  from dvc.utils.fs import remove
label_desc: Use image node_id 7 for calling a global function with example usage: test_dumpd_cloud_versioning_dir(mocker) without return types