def validate_level_dependent_constants(umf, ldc_valid):
    """
    Check that level dependent constants associated with a
    :class:`UMFile` object are present and the expected size.

    Args:
        * umf:
            A :class:`UMFile` subclass instance.
        * ldc_valid:
            Tuple containing the size of the two expected dimensions
            of the level dependent constants to be checked against.

    """
    out_msg = []
    if umf.level_dependent_constants is None:
        return ["Level dependent constants not found"]

    ldc_shape = umf.level_dependent_constants.shape
    if ldc_shape != ldc_valid:
        msg = ("Incorrectly shaped level dependent constants based on "
               "file type and number of levels in integer_constants "
               "(found {0}, should be {1})")
        out_msg = [msg.format(ldc_shape, ldc_valid)]
    return out_msg