code: def get_enum(cls, data: Optional[Iterable]) -> List:
      if data is None:
          return []
      return [
          [i] + list(e) if isinstance(e, (list, tuple)) else [i, e]
          for i, e in enumerate(data)
      ]
  
file_path: vizseq/vizseq/_view/data_view.py
imports: from typing import Tuple, List, Iterable, NamedTuple, Dict, Optional
  import numpy
  from vizseq._data import VizSeqDataSources, VizSeqLanguageTagger
  from .data_sorters import VizSeqSortingType, VizSeqRandomSorter, VizSeqByLenSorter, VizSeqByStrOrderSorter, VizSeqByMetricSorter
  from .data_filter import VizSeqFilter
  from vizseq.scorers import get_scorer, get_scorer_ids
  from vizseq._visualizers import VizSeqSrcVisualizer, VizSeqRefVisualizer, VizSeqHypoVisualizer, VizSeqDictVisualizer
label_desc: Use image node_id 1 for calling the VizSeqDataPageView obj's underlying member method code with example usage: obj.get_enum(cls, data) and returns: unknown, list