code: def already_converted(content):
      """Check if the example file is already converted to sphinx-gallery format.
  
      Parameters
      ----------
      content : list of str
          example file content
  
      Returns
      -------
      bool
          _description_
      """
      return (
          content.count(sphx_glr_sep) >= 2
          or content.count(sphx_glr_sep_2) >= 2
      )
  
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 2 for calling a global function with example usage: already_converted(content) and returns: unknown