class_docstr: Adapter that handles lists of scalars and lists of lists of scalars.
code: def __init__(
      self,
      x,
      y=None,
      sample_weights=None,
      batch_size=None,
      shuffle=False,
      **kwargs,
  ):
      super(ListsOfScalarsDataAdapter, self).__init__(x, y, **kwargs)
      x = np.asarray(x)
      if y is not None:
          y = np.asarray(y)
      if sample_weights is not None:
          sample_weights = np.asarray(sample_weights)
  
      self._internal_adapter = ArrayDataAdapter(
          x,
          y=y,
          sample_weights=sample_weights,
          batch_size=batch_size,
          shuffle=shuffle,
          **kwargs,
      )
  
file_path: elegy/elegy/data/list_adapter.py
imports: import typing
  import numpy
  from .array_adapter import ArrayDataAdapter
  from .data_adapter import DataAdapter
label_desc: Use image node_id 3 to create a new ListsOfScalarsDataAdapter object from inherited base classes: DataAdapter with example: obj = ListsOfScalarsDataAdapter(x, y, sample_weights, batch_size, shuffle)