code: def test_move_meta(tmp_dir, dvc):
      (stage,) = tmp_dir.dvc_gen("foo", "foo")
      data = (tmp_dir / stage.path).parse()
      data["meta"] = {"custom_key": 42}
      (tmp_dir / stage.path).dump(data)
  
      dvc.move("foo", "bar")
      res = (tmp_dir / "bar.dvc").read_text()
      assert res == textwrap.dedent(
          """\
          outs:
          - md5: acbd18db4cc2f85cedef654fccc4a4d8
            size: 3
            hash: md5
            path: bar
          meta:
            custom_key: 42
      """
      )
  
imports: import os
  import shutil
  import textwrap
  import pytest
  from dvc.cli import main
  from dvc.exceptions import MoveNotDataSourceError, OutputNotFoundError
label_desc: Use image node_id 16 for calling a global function with example usage: test_move_meta(tmp_dir, dvc) without return types