def return_valid_optional_args(obj):
    """
    :param obj:  dictionary
    :return: obj['optional_args'] if "optional_args" is another dictionary under the input dictionary.
    """
    if type(obj) is dict and 'optional_args' in obj.keys():
        return obj['optional_args']
    else:
        return {}