code: def _convert_category_codes_to_indices(
      codes: List[str], formatter_configs: FormatterConfigs
  ) -> List[int]:
      # Category codes start at 1, but indices start at 0, so we subtract 1
      return [
          int(
              code.lstrip(
                  formatter_configs.guidelines.category_code_prefix
              )
          )
          - 1
          for code in codes
      ]
  
imports: import copy
  import random
  from dataclasses import dataclass
  from enum import Enum
  from typing import Dict, List, Literal, Optional, Sequence
label_desc: Use image node_id 10 for calling a global function with example usage: _convert_category_codes_to_indices(codes, formatter_configs) and returns: unknown