code: def test_cmd(dvc):
      stage = create_stage(PipelineStage, dvc, **kwargs)
      entry = to_pipeline_file(stage)
      assert entry == {"something": {"cmd": "command"}}
  
imports: import os
  import pytest
  from voluptuous import Schema
  from dvc import output
  from dvc.dvcfile import PROJECT_FILE
  from dvc.schema import SINGLE_PIPELINE_STAGE_SCHEMA
  from dvc.stage import PipelineStage, create_stage
  from dvc.stage.serialize import to_pipeline_file
label_desc: Use image node_id 2 for calling a global function with example usage: test_cmd(dvc) without return types