code: def __post_init__(self):
      self.sort_index = self.position
  
file_path: dipy/doc/sphinxext/prepare_gallery.py
imports: import fnmatch
  import sys
  import os
  import shutil
  from os.path import join
  from dataclasses import dataclass, field
  from pathlib import Path
  from sphinx.util import logging
label_desc: Use image node_id 1 for calling the examplesConfig obj's underlying member method code with example usage: obj.__post_init__() without return types