def METHOD_NAME():
    """List environment"""
    COLS_TO_SHOW = ["Name", "Id", "dockerImage"]
    console = Console()
    try:
        thread = environmentClient.list_environments_async()
        timeout = time.time() + TIMEOUT
        with console.status("[bold green] Fetching Environments..."):
            while not thread.ready():
                time.sleep(POLLING_INTERVAL)
                if time.time() > timeout:
                    console.print("[bold red] Timeout!")
                    return
        result = thread.get()
        results = result.result
        results = list(
            map(
                lambda r: [
                    r["environmentSpec"]["name"],
                    r["environmentId"],
                    r["environmentSpec"]["dockerImage"],
                ],
                results,
            )
        )
        table = Table(title="List of Environments")
        for col in COLS_TO_SHOW:
            table.add_column(col, overflow="fold")
        for res in results:
            table.add_row(*res)
        console.print(table)
    except ApiException as err:
        if err.body is not None:
            errbody = json.loads(err.body)
            click.echo(f"[Api Error] {errbody['message']}")
        else:
            click.echo(f"[Api Error] {err}")