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

def allocation(node,format,h):
    '''
    Allocation provides a snapshot of how shards have located around the
    cluster and the state of disk usage
    '''
    try:
        response = base.es.cat.allocation(node_id=node,bytes=format, h=h, format='json')
        table = base.draw_table(response)
    except Exception as e:
        click.echo(e)
    else:
        click.echo(table)