code: def bytes_to_string(raw_data: bytes, prefix: bool = False) -> str:
          
          prefix_string = ''
          if prefix:
              prefix_string = '0x'
          suffix = ''.join([format(c, "02x") for c in raw_data])
          return prefix_string + suffix.upper()
docs: Convert a byte array to a hex string.