code: def test_run_ls(self):
      self.__set_variables()
  
      # Running a task
      test_command = ["sh", "-c", "echo accuracy:0.45"]
      test_ports = ["8888:8888", "9999:9999"]
      test_dockerfile = os.path.join(self.temp_dir, "Dockerfile")
      test_mem_limit = "4g"
  
      # test for single set of ports
      self.run_command.parse(
          [
              "run",
              "--ports",
              test_ports[0],
              "--environment-paths",
              test_dockerfile,
              "--mem-limit",
              test_mem_limit,
              test_command,
          ]
      )
  
      # test proper execution of run command
      self.run_command.execute()
      # Test defaults
      self.run_command.parse(["ls"])
      run_objs = self.run_command.execute()
      assert run_objs
      assert run_objs[0].status == "SUCCESS"
  
      # Test failure (format)
      failed = False
      try:
          self.run_command.parse(["ls", "--format"])
      except ArgumentError:
          failed = True
      assert failed
  
      # Test success format csv
      self.run_command.parse(["ls", "--format", "csv"])
      run_objs = self.run_command.execute()
      assert run_objs
      assert run_objs[0].status == "SUCCESS"
  
      # Test success format csv, download default
      self.run_command.parse(["ls", "--format", "csv", "--download"])
      run_objs = self.run_command.execute()
      assert run_objs
      assert run_objs[0].status == "SUCCESS"
      test_wildcard = os.path.join(os.getcwd(), "run_ls_*")
      paths = [n for n in glob.glob(test_wildcard) if os.path.isfile(n)]
      assert paths
      assert open(paths[0], "r").read()
      os.remove(paths[0])
  
      # Test success format csv, download exact path
      test_path = os.path.join(self.temp_dir, "my_output")
      self.run_command.parse(
          [
              "ls",
              "--format",
              "csv",
              "--download",
              "--download-path",
              test_path,
          ]
      )
      run_objs = self.run_command.execute()
      assert run_objs
      assert run_objs[0].status == "SUCCESS"
      assert os.path.isfile(test_path)
      assert open(test_path, "r").read()
      os.remove(test_path)
  
      # Test success format table
      self.run_command.parse(["ls"])
      run_objs = self.run_command.execute()
      assert run_objs
      assert run_objs[0].status == "SUCCESS"
  
      # Test success format table, download default
      self.run_command.parse(["ls", "--download"])
      run_objs = self.run_command.execute()
      assert run_objs
      assert run_objs[0].status == "SUCCESS"
      test_wildcard = os.path.join(os.getcwd(), "run_ls_*")
      paths = [n for n in glob.glob(test_wildcard) if os.path.isfile(n)]
      assert paths
      assert open(paths[0], "r").read()
      os.remove(paths[0])
  
      # Test success format table, download exact path
      test_path = os.path.join(self.temp_dir, "my_output")
      self.run_command.parse(
          ["ls", "--download", "--download-path", test_path]
      )
      run_objs = self.run_command.execute()
      assert run_objs
      assert run_objs[0].status == "SUCCESS"
      assert os.path.isfile(test_path)
      assert open(test_path, "r").read()
      os.remove(test_path)
  
imports: from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import os
  import glob
  import time
  import tempfile
  import platform
  from argparse import ArgumentError
  from io import open
  from datmo.config import Config
  from datmo.cli.driver.helper import Helper
  from datmo.cli.command.project import ProjectCommand
  from datmo.cli.command.run import RunCommand
  from datmo.core.entity.run import Run
  from datmo.core.util.exceptions import DoesNotExist, MutuallyExclusiveArguments, RequiredArgumentMissing
  from datmo.core.util.misc_functions import pytest_docker_environment_failed_instantiation
label_desc: Use image node_id 10 for calling the TestRunCommand obj's underlying member method code with example usage: obj.test_run_ls() without return types