code: def test_build_dataclass():
      args = Namespace(a="foo", b="bar")
      a = build_dataclass(A, args)
      assert a.a == args.a
      assert a.b == args.b
  
imports: import dataclasses
  from argparse import Namespace
  import pytest
  from espnet2.utils.build_dataclass import build_dataclass
label_desc: Use image node_id 1 for calling a global function with example usage: test_build_dataclass() without return types