human
I wrote the below code

    missing_required = [x for x in required if (not getattr(namespace, x))]
    included_forbidden = [x for x in forbidden if (getattr(namespace, x) and (not hasattr(getattr(namespace, x), 'is_default')))]
    if (missing_required or included_forbidden):
        from azure.cli.core.util import CLIError
        def _dest_to_option(dest):
            try:
                return dest_to_options[dest]
            except (KeyError, TypeError):
                return '--{}'.format(dest).replace('_', '-')
        error = 'invalid    usage{}{}'.format(('    for    ' if description else ':'), description)
        if missing_required:
            missing_string = ',    '.join((_dest_to_option(x) for x in missing_required))
            error = '{}\n DCTB missing:    {}'.format(error, missing_string)
        if included_forbidden:
            forbidden_string = ',    '.join((_dest_to_option(x) for x in included_forbidden))
            error = '{}\n DCTB not    applicable:    {}'.format(error, forbidden_string)
        raise CLIError(error)

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def validate_parameter_set(namespace, required, forbidden, dest_to_options=None, description=None):