def METHOD_NAME(error):
    """
    Return the :py:class:`signal.Signals` member for the
    :py:attr:`subprocess.CalledProcessError.returncode` of *error*, if any.
    """
    def signal(num):
        try:
            return Signals(num)
        except ValueError:
            return None
    # A grandchild process exited from a signal, which bubbled back up
    # through Bash as 128 + signal number.
    if error.returncode > 128:
        return signal(error.returncode - 128)
    # CalledProcessError documents that fatal signals for the direct child
    # process (bash in our case) are reported as negative exit codes.
    elif error.returncode < 0:
        return signal(abs(error.returncode))
    else:
        return None