code: def make_indices_str(indices: Iterable[int]) -> str:
      """Generate a string representation of an iterable of indices;
      if indices are contiguous, returns a string formatted like like
      '<min_idx> - <max_idx>', otherwise a string formatted like
      '[idx_1, idx_2, ..., idx_n'].
      """
      idcs = sorted(indices)
      contiguous = len(idcs) > 1 and (
          idcs[-1] - idcs[0] == len(idcs) - 1
      )
      return f"{idcs[0]} - {idcs[-1]}" if contiguous else f"{idcs}"
  
imports: import logging
  import os
  import re
  from functools import wraps
  from typing import Any, Callable, Iterable, List, TypeVar
  from ax.utils.common.decorator import ClassDecorator
label_desc: Use image node_id 7 for calling a global function with example usage: make_indices_str(indices) and returns: unknown