code: def __iter__(self):
      for kind, grouped_df in self.grouped_dict.items():
          for ts_id, group in grouped_df:
              yield Timeseries(
                  ts_id, str(kind), group[self.column_value]
              )
  
imports: import itertools
  from collections import defaultdict, namedtuple
  from typing import Iterable, Sized
  import pandas
label_desc: Use image node_id 2 for calling the TsDictAdapter obj's underlying member method code with example usage: obj.__iter__() without return types