code: def get_truncatable_str(str_to_convert):
      
      truncated, truncated_byte_count = check_str_length(
          str_to_convert, MAX_LENGTH)
  
      result = {
          'value': truncated,
          'truncated_byte_count': truncated_byte_count,
      }
      return result
docs: Truncate a string if exceed limit and record the truncated bytes
      count.