code: def auto_sample(cls, data: Union[List[int], List[float]]):
      n = len(data)
      if n > cls.MAX_SAMPLES:
          return [data[i] for i in range(0, n, n // cls.MAX_SAMPLES)]
      return data
  
file_path: vizseq/vizseq/_data/stats.py
imports: from collections import Counter, defaultdict
  from typing import List, NamedTuple, Optional, Tuple, Union, Dict
  import numpy
  from vizseq._data import VizSeqDataSources
label_desc: Use image node_id 1 for calling the VizSeqStats obj's underlying member method code with example usage: obj.auto_sample(cls, data) and returns: data, unknown