code: def test_dataclass_inheritance():
      @serde.dataclass
      class A:
          x: int = 1
          y: int = 2
  
      @serde.dataclass
      class B(A):
          z: int = 4
  
      b = B(x=3)
      assert b.x == 3
      assert b.z == 4
  
file_path: gluonts/test/core/test_serde_dataclass.py
imports: from typing import List
  from gluonts.core import serde
  from gluonts.pydantic import BaseModel
label_desc: Use image node_id 3 for calling a global function with example usage: test_dataclass_inheritance() without return types