class_docstr: The leaderBoard that can be used to store / sort the model performance automatically.
  
  Parameters
  ----------
  fields: list of `str`
      A list of field name that shows the model performance. The first field is used as
      the major field for sorting the model performances.
  
  is_higher_better: `dict` of *field* -> `bool`
      A mapping of indicator that whether each field is higher better.
class_docstr_tok: ["The","leaderBoard","that","can","be","used","to","store","\/","sort","the","model","performance","automatically",".","Parameters","--","--","--","--","--","fields",":","list","of","`","str","`","A","list","of","field","name","that","shows","the","model","performance",".","The","first","field","is","used","as","the","major","field","for","sorting","the","model","performances",".","is_higher_better",":","`","dict","`","of","*","field","*","-",">","`","bool","`","A","mapping","of","indicator","that","whether","each","field","is","higher","better","."]
docstr: Set the major field of current LeaderBoard.
  
  Parameters
  ----------
  field: `str`
      The major field, should be one of the fields when initialized.
  
  Returns
  -------
  None
docstr_tok: ["Set","the","major","field","of","current","LeaderBoard",".","Parameters","--","--","--","--","--","field",":","`","str","`","The","major","field",",","should","be","one","of","the","fields","when","initialized",".","Returns","--","--","--","-","None"]
code: def set_major_field(self, field) -> None:
      """
      Set the major field of current LeaderBoard.
  
      Parameters
      ----------
      field: `str`
          The major field, should be one of the fields when initialized.
  
      Returns
      -------
      None
      """
      if field in self.keys and not field == "name":
          self.major_field = field
      else:
          LOGGER.warning(
              f"Field [{field}] NOT found in the current LeaderBoard, will ignore."
          )
  
imports: import random
  import typing
  import torch
  import torch.backends.cudnn
  import numpy
  import pandas
  from ..backend import DependentBackend
  from ..data import Dataset
  from ..data.graph import GeneralStaticGraph
  from ..utils import get_logger
label_desc: Use image node_id 2 for calling the LeaderBoard obj's underlying member method code with example usage: obj.set_major_field(field) without return types