code: def serialize(self, obj: int, key_size: int) -> bytes:
      return obj.to_bytes(key_size, ENDIAN)
  
imports: import abc
  from datetime import datetime, timezone
  from uuid import UUID
  from .const import ENDIAN
label_desc: Use image node_id 1 for calling the IntSerializer obj's underlying member method code with example usage: obj.serialize(obj, key_size) and returns: obj