def METHOD_NAME(name):
    """Get environment"""
    console = Console()
    try:
        thread = environmentClient.get_environment_async(name)
        timeout = time.time() + TIMEOUT
        with console.status(f"[bold green] Fetching Environment(name = {name} )..."):
            while not thread.ready():
                time.sleep(POLLING_INTERVAL)
                if time.time() > timeout:
                    console.print("[bold red] Timeout!")
                    return
        result = thread.get()
        result = result.result
        json_data = richJSON.from_data(result)
        console.print(Panel(json_data, title=f"Environment(name = {name} )"))
    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}")