docstr: Moves all the tuner specific callbacks at the beginning of the list and all the `ModelCheckpoint` callbacks
  to the end of the list. The sequential order within the group of checkpoint callbacks is preserved, as well as
  the order of all other callbacks.
  
  Args:
      callbacks: A list of callbacks.
  
  Return:
      A new list in which the first elements are tuner specific callbacks and last elements are ModelCheckpoints
      if there were any present in the input.
docstr_tok: ["Moves","all","the","tuner","specific","callbacks","at","the","beginning","of","the","list","and","all","the","`","ModelCheckpoint","`","callbacks","to","the","end","of","the","list",".","The","sequential","order","within","the","group","of","checkpoint","callbacks","is","preserved",",","as","well","as","the","order","of","all","other","callbacks",".","Args",":","callbacks",":","A","list","of","callbacks",".","Return",":","A","new","list","in","which","the","first","elements","are","tuner","specific","callbacks","and","last","elements","are","ModelCheckpoints","if","there","were","any","present","in","the","input","."]
code: def _reorder_callbacks(callbacks: List[Callback]) -> List[Callback]:
      """Moves all the tuner specific callbacks at the beginning of the list and all the `ModelCheckpoint` callbacks
      to the end of the list. The sequential order within the group of checkpoint callbacks is preserved, as well as
      the order of all other callbacks.
  
      Args:
          callbacks: A list of callbacks.
  
      Return:
          A new list in which the first elements are tuner specific callbacks and last elements are ModelCheckpoints
          if there were any present in the input.
  
      """
      tuner_callbacks: List[Callback] = []
      other_callbacks: List[Callback] = []
      checkpoint_callbacks: List[Callback] = []
  
      for cb in callbacks:
          if isinstance(cb, (BatchSizeFinder, LearningRateFinder)):
              tuner_callbacks.append(cb)
          elif isinstance(cb, Checkpoint):
              checkpoint_callbacks.append(cb)
          else:
              other_callbacks.append(cb)
  
      return tuner_callbacks + other_callbacks + checkpoint_callbacks
  
imports: import logging
  import os
  from datetime import timedelta
  from typing import Dict, List, Optional, Sequence, Union
  import lightning.pytorch
  from lightning.fabric.utilities.registry import _load_external_callbacks
  from lightning.pytorch.callbacks import Callback, Checkpoint, ModelCheckpoint, ModelSummary, ProgressBar, RichProgressBar, TQDMProgressBar
  from lightning.pytorch.callbacks.batch_size_finder import BatchSizeFinder
  from lightning.pytorch.callbacks.lr_finder import LearningRateFinder
  from lightning.pytorch.callbacks.rich_model_summary import RichModelSummary
  from lightning.pytorch.callbacks.timer import Timer
  from lightning.pytorch.trainer import call
  from lightning.pytorch.utilities.exceptions import MisconfigurationException
  from lightning.pytorch.utilities.model_helpers import is_overridden
  from lightning.pytorch.utilities.rank_zero import rank_zero_info
label_desc: Use image node_id 9 for calling the _CallbackConnector obj's underlying member method code with example usage: obj._reorder_callbacks(callbacks) and returns: unknown