def METHOD_NAME(deck):
    result = _invoke('deckNames')
    if deck not in result:
        g.es('Specified deck is %s. But it is present in your list of desks. Creating now...' % (deck))
        result = _invoke('createDeck', deck=deck)
        g.es('Created %s with id %s' % (deck, str(result)))