def akmcsInfocheck(akmcsInfo):
    """ Helper function to check the AKMCS dictionary.

    Checks akmcsInfo dict and sets default values, if required
    parameters are not supplied.

    Args:
        akmcsInfo (dict): Dictionary that contains AKMCS information.

    Returns:
        akmcsInfo: Checked/Modified AKMCS Information.
    """
    if "init_samp" not in akmcsInfo:
        raise ValueError('akmcsInfo["init_samp"] must be defined')
    else:
        pass

    if "maxupdate" not in akmcsInfo:
        akmcsInfo["maxupdate"] = 120
        print("Maximum update is set to ", akmcsInfo["maxupdate"])
    else:
        print("Maximum update is set to ", akmcsInfo["maxupdate"], " by user.")

    if "problem" not in akmcsInfo:
        raise ValueError('akmcsInfo["problem"] must be defined')
    else:
        pass

    return akmcsInfo