code: def is_main_variation(self) -> bool:
          
          if not self.parent:
              return True
  
          return not self.parent.variations or self.parent.variations[0] == self
docs: Checks if this node is the first variation from the point of view of its
          parent. The root node is also in the main variation.