def get_menu_item_params(source, func):
    """
    Return the arguments to pass to pm.menuItem to create a menu item matching a shelf
    or shelf popup item.  source is the name of the shelf/popup, and func is either pm.shelfButton
    or pm.menuItem.
    """
    properties = ['label', 'image', 'annotation']
    cmd = {}
    for prop in properties:
        kwargs = {}
        kwargs[prop] = True
        cmd[prop] = func(source, q=True, **kwargs)
        
    return cmd