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

def _query(action=None,
           command=None,
           args=None,
           method='GET',
           data=None):
    '''
    Make a web call to BambooHR

    The password can be any random text, so we chose Salty text.
    '''
    subdomain = __opts__.get('bamboohr', {}).get('subdomain', None)
    path = 'https://api.bamboohr.com/api/gateway.php/{0}/v1/'.format(
        subdomain
    )

    if action:
        path += action

    if command:
        path += '/{0}'.format(command)

    log.debug('BambooHR URL: %s', path)

    if not isinstance(args, dict):
        args = {}

    return_content = None
    result = salt.utils.http.query(
        path,
        method,
        username=_apikey(),
        password='saltypork',
        params=args,
        data=data,
        decode=False,
        text=True,
        status=True,
        opts=__opts__,
    )
    log.debug('BambooHR Response Status Code: %s', result['status'])

    return [result['status'], result['text']]