code: def ls(self, **kwargs):
      self.environment_controller = EnvironmentController()
      print_format = kwargs.get("format", "table")
      download = kwargs.get("download", None)
      download_path = kwargs.get("download_path", None)
      environment_objs = self.environment_controller.list()
      header_list = ["id", "created at", "name", "description"]
      item_dict_list = []
      for environment_obj in environment_objs:
          environment_obj_name = printable_object(environment_obj.name)
          environment_obj_description = printable_object(
              environment_obj.description
          )
          item_dict_list.append(
              {
                  "id": environment_obj.id,
                  "created at": prettify_datetime(
                      environment_obj.created_at
                  ),
                  "name": environment_obj_name,
                  "description": environment_obj_description,
              }
          )
      if download:
          if not download_path:
              # download to current working directory with timestamp
              current_time = datetime.utcnow()
              epoch_time = datetime.utcfromtimestamp(0)
              current_time_unix_time_ms = (
                  current_time - epoch_time
              ).total_seconds() * 1000.0
              download_path = os.path.join(
                  self.environment_controller.home,
                  "environment_ls_" + str(current_time_unix_time_ms),
              )
          self.cli_helper.print_items(
              header_list,
              item_dict_list,
              print_format=print_format,
              output_path=download_path,
          )
          return environment_objs
      self.cli_helper.print_items(
          header_list, item_dict_list, print_format=print_format
      )
      return environment_objs
  
file_path: datmo/datmo/cli/command/environment.py
imports: from __future__ import print_function
  import os
  from datetime import datetime
  from datmo.core.util.i18n import get
  from datmo.cli.driver.helper import Helper
  from datmo.core.controller.environment.environment import EnvironmentController
  from datmo.cli.command.project import ProjectCommand
  from datmo.core.util.exceptions import EnvironmentDoesNotExist
  from datmo.core.util.misc_functions import printable_object, prettify_datetime
label_desc: Use image node_id 7 for calling the EnvironmentCommand obj's underlying member method code with example usage: obj.ls() and returns: environment_objs, environment_objs