def METHOD_NAME(ssh_key, computer):
    """Test the :meth:`aiida.orm.nodes.data.code.installed.InstalledCode.validate_filepath_executable` method."""
    filepath_executable = '/usr/bin/not-existing'
    code = InstalledCode(computer=computer, filepath_executable=filepath_executable)
    with pytest.raises(ValidationError, match=r'Could not connect to the configured computer.*'):
        code.validate_filepath_executable()
    if computer.transport_type == 'core.ssh':
        computer.configure(key_filename=str(ssh_key), key_policy='AutoAddPolicy')
    else:
        computer.configure()
    with pytest.raises(ValidationError, match=r'The provided remote absolute path .* does not exist on the computer\.'):
        code.validate_filepath_executable()
    code.filepath_executable = '/usr/bin/bash'
    code.validate_filepath_executable()