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: Add/Override a record of model performance. If name given is already in the leaderboard,
  will overrride the slot.
  
  Parameters
  ----------
  name: `str`
      The model name/identifier that identifies the model.
  
  performance: `dict`
      The performance dict. The key inside the dict should be the fields when initialized.
      The value of the dict should be the corresponding scores.
  
  Returns
  -------
  None
docstr_tok: ["Add\/Override","a","record","of","model","performance",".","If","name","given","is","already","in","the","leaderboard",",","will","overrride","the","slot",".","Parameters","--","--","--","--","--","name",":","`","str","`","The","model","name\/identifier","that","identifies","the","model",".","performance",":","`","dict","`","The","performance","dict",".","The","key","inside","the","dict","should","be","the","fields","when","initialized",".","The","value","of","the","dict","should","be","the","corresponding","scores",".","Returns","--","--","--","-","None"]
code: def insert_model_performance(self, name, performance) -> None:
      """
      Add/Override a record of model performance. If name given is already in the leaderboard,
      will overrride the slot.
  
      Parameters
      ----------
      name: `str`
          The model name/identifier that identifies the model.
  
      performance: `dict`
          The performance dict. The key inside the dict should be the fields when initialized.
          The value of the dict should be the corresponding scores.
  
      Returns
      -------
      None
      """
      if name not in self.perform_dict["name"]:
          # we just add a new row
          performance["name"] = name
          new = pd.DataFrame(performance, index=[0])
          self.perform_dict = pd.concat(
              [self.perform_dict, new], ignore_index=True
          )
      else:
          LOGGER.warning(
              "model already in the leaderboard, will override current result."
          )
          self.remove_model_performance(name)
          self.insert_model_performance(name, performance)
  
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 3 for calling the LeaderBoard obj's underlying member method code with example usage: obj.insert_model_performance(name, performance) without return types