code: def to_serializable(self, serializer: Serializer) -> AnyRep:
      return serializer.encode_struct(
          type="value",
          value=self.value,
          transform=self.transform,
          units=self.units,
      )
  
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING, Any, Union
  from ...util.dataclasses import NotRequired, Unspecified, dataclass
  from ..serialization import AnyRep, Deserializer, Serializable, Serializer
label_desc: Use image node_id 1 for calling the Value obj's underlying member method code with example usage: obj.to_serializable(serializer) and returns: serializer