def _get_output_dict(obj, name, func):
    """ return an output dict.  """
    out = func(obj)
    if isinstance(out, dict):
        return out
    else:
        if name.startswith('get_'):
            name = name[4:]
        elif name.startswith('_get_'):
            name = name[5:]
        return {name: out}
