code: def __to_yaml_truncated_list(value, limit: int):
      res = []
      total_size = 0
      for v in value:
          r, size = Value.__to_yaml_truncated(v, limit - total_size)
          res.append(r)
          if limit - total_size < size:
              res.append(TRUNCATED_TOKEN)
              return res, limit
          total_size += size
      return res, total_size
  
file_path: labml/client/labml/internal/configs/utils.py
imports: import warnings
  from typing import Tuple, Union, List, TYPE_CHECKING
label_desc: Use image node_id 2 for calling the Value obj's underlying member method code with example usage: obj.__to_yaml_truncated_list(value, limit) and returns: res,  total_size, res,  limit