<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def getUsage(api_key=None, api_version=None):
    '''
    Show current usages statistics

    :param api_key: The Random.org api key.
    :param api_version: The Random.org api version.
    :return: The current usage statistics.

    CLI Example:

    .. code-block:: bash

        salt '*' random_org.getUsage

        salt '*' random_org.getUsage api_key=peWcBiMOS9HrZG15peWcBiMOS9HrZG15 api_version=1
    '''
    ret = {'res': True}

    if not api_key or not api_version:
        try:
            options = __salt__['config.option']('random_org')
            if not api_key:
                api_key = options.get('api_key')
            if not api_version:
                api_version = options.get('api_version')
        except (NameError, KeyError, AttributeError):
            log.error('No Random.org api key found.')
            ret['message'] = 'No Random.org api key or api version found.'
            ret['res'] = False
            return ret

    if isinstance(api_version, int):
        api_version = six.text_type(api_version)

    _function = RANDOM_ORG_FUNCTIONS.get(api_version).get('getUsage').get('method')
    data = {}
    data['id'] = 1911220
    data['jsonrpc'] = '2.0'
    data['method'] = _function
    data['params'] = {'apiKey': api_key}

    result = _query(api_version=api_version, data=data)

    if result:
        ret['bitsLeft'] = result.get('bitsLeft')
        ret['requestsLeft'] = result.get('requestsLeft')
        ret['totalBits'] = result.get('totalBits')
        ret['totalRequests'] = result.get('totalRequests')
    else:
        ret['res'] = False
        ret['message'] = result['message']
    return ret