code: def __call__(self, filename):
      if "gallery/transforms" in self.src_dir:
          try:
              return self.transforms_subsection_order.index(filename)
          except ValueError as e:
              raise ValueError(
                  "Looks like you added an example in gallery/transforms? "
                  "You need to specify its order in docs/source/conf.py. Look for CustomGalleryExampleSortKey."
              ) from e
      else:
          # For other subsections we just sort alphabetically by filename
          return filename
  
imports: import os
  import sys
  import textwrap
  from copy import copy
  from pathlib import Path
  import pytorch_sphinx_theme
  import torchvision
  import torchvision.models
  from sphinx_gallery.sorting import ExplicitOrder
  from tabulate import tabulate
  from sphinx_gallery import gen_rst
  from docutils import nodes
  from sphinx import addnodes
  from sphinx.util.docfields import TypedField
label_desc: Use image node_id 2 for calling the CustomGalleryExampleSortKey obj's underlying member method code with example usage: obj.__call__(filename) and returns: filename, self