def get_mod_from_id(mod_id, mod_list):
    """
    Returns the mod for given mod or None if it isn't found.

    Parameters
    ----------
    mod_id : str
        The mod identifier to look for
    mod_list : list[DatRecord]
        List of mods to search in (or dat file)


    Returns
    -------
    DatRecord or None
        Returns the mod if found, None otherwise
    """
    for mod in mod_list:
        if mod['Id'] == mod_id:
            return mod
    return None