code: def truncate(self, size: int | None = ...) -> int:
      ...
  
imports: from __future__ import annotations
  from datetime import datetime, timedelta, tzinfo
  from os import PathLike
  from typing import TYPE_CHECKING, Any, Callable, Dict, Hashable, Iterator, List, Literal, Mapping, Optional, Protocol, Sequence, Tuple, Type, TypeVar, Union
  import numpy
label_desc: Use image node_id 1 for calling the WriteExcelBuffer obj's underlying member method code with example usage: obj.truncate(size) without return types