class_docstr: Base data class representing a binary object in the Haystack API.
code: def to_file(self, destination_path: Path):
      with open(destination_path, "wb") as fd:
          fd.write(self.data)
  
imports: from dataclasses import dataclass, field
  from pathlib import Path
  from typing import Optional, Dict, Any
label_desc: Use image node_id 1 for calling the ByteStream obj's underlying member method code with example usage: obj.to_file(destination_path) without return types