code: 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(tablef 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)
docs: Allocation provides a snapshot of how shards have located around the
      cluster and the state of disk usage