code: def build_class(name, basenames=(), doc=None):
      
      node = nodes.ClassDef(name, doc)
      for base in basenames:
          basenode = nodes.Name()
          basenode.name = base
          node.bases.append(basenode)
          basenode.parent = node
      return node
docs: create and initialize an astroid ClassDef node