code: def binary_to_ascii(variant):
      # Convert the binary string to an integer with base 2
      binary_int = int(variant, 2)
      byte_number = binary_int.bit_length() + 7 // 8
  
      # Convert the resulting int to a bytearray and then decode it to ASCII text
      binary_array = binary_int.to_bytes(byte_number, "big")
      try:
          ascii_text = binary_array.decode()
          logging.debug(f"Found possible solution: {ascii_text[:32]}")
          return ascii_text
      except UnicodeDecodeError as e:
          logging.debug(
              f"Failed to crack X-Y due to a UnicodeDecodeError: {e}"
          )
          return ""
  
file_path: Ciphey/ciphey/basemods/Crackers/xandy.py
imports: import re
  from typing import Dict, List, Optional
  import logging
  from rich.logging import RichHandler
  from ciphey.iface import Config, Cracker, CrackInfo, CrackResult, ParamSpec, registry
label_desc: Use image node_id 2 for calling the Xandy obj's underlying member method code with example usage: obj.binary_to_ascii(variant) and returns: ascii_text, str