import types


def is_object_module(obj):
    """
    Test if the argument is a module object.

    :param obj: Object
    :type  obj: any

    :rtype: boolean
    """
    return isinstance(obj, types.ModuleType)