import importlib


def construct_class(namespace, class_name, args):
    """
    Helper function to dynamically construct a class from configuration.

    :param namespace: The namespace where the class resides.
    :param class_name: The class to construct.
    """
    module = importlib.import_module(name=namespace)
    class_ = getattr(module, class_name)
    return class_(*args)