def add(self, split_info):
    """Add the split info."""
    if split_info.name in self:
      raise ValueError("Split {} already present".format(split_info.name))
    # TODO(epot): Make sure this works with Named splits correctly.
    super(SplitDict, self).__setitem__(split_info.name, split_info)
def add ( self , split_info ) : if split_info . name in self : raise ValueError ( "Split {} already present" . format ( split_info . name ) ) super ( SplitDict , self ) . __setitem__ ( split_info . name , split_info )
Add the split info.