code: def __to_yaml_truncated_str(value, limit: int):
      limit = max(limit, MIN_STR_LIMIT)
      if len(value) > limit:
          res = value[:limit] + " " + TRUNCATED_TOKEN
          return res, limit
      else:
          return value, max(len(value), 1)
  
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 3 for calling the Value obj's underlying member method code with example usage: obj.__to_yaml_truncated_str(value, limit) and returns: res,  limit, value,  max