def is_required(action):
 return (((not action.option_strings) and (not isinstance(action, _SubParsersAction))) or (action.required == True))

def is_required ( action ) : return ( ( ( not action . option_strings ) and ( not isinstance ( action , _SubParsersAction ) ) ) or ( action . required == True ) )
returns true if metaschema question is required .