code: def test_update_environment_run_options(self):
      self.__setup()
      environment_run_option = {
          "command": ["python", "script.py"],
          "volumes": {
              os.path.join(self.temp_dir, "/temp_task"): {
                  "bind": "/task/",
                  "mode": "rw",
              },
              self.temp_dir: {"bind": "/home/", "mode": "rw"},
          },
      }
      # create data file
      data_dirpath = os.path.join(self.temp_dir, "data")
      data_file_dirpath = os.path.join(self.temp_dir, "data_folder")
      data_filepath = os.path.join(data_file_dirpath, "data_file.txt")
      os.mkdir(data_dirpath)
      os.mkdir(data_file_dirpath)
      with open(data_filepath, "wb") as f:
          f.write(to_bytes("data file"))
  
      data_file_path_map = [(data_filepath, "data_file.txt")]
      data_directory_path_map = [(data_dirpath, "data_directory")]
  
      environment_run_option = (
          self.task_controller._update_environment_run_options(
              environment_run_option,
              data_file_path_map,
              data_directory_path_map,
          )
      )
  
      assert environment_run_option["volumes"][data_file_dirpath] == {
          "bind": "/data/",
          "mode": "rw",
      }
      assert environment_run_option["volumes"][data_dirpath] == {
          "bind": "/data/data_directory",
          "mode": "rw",
      }
  
      # Error by passing directory which does not exist
      data_dirpath = os.path.join(self.temp_dir, "data_dne")
      data_filepath = os.path.join(
          self.temp_dir, "data_dne", "data_file.txt"
      )
      data_file_path_map = [(data_filepath, "data_file.txt")]
      data_directory_path_map = [(data_dirpath, "data_directory")]
      failed = False
      try:
          self.task_controller._update_environment_run_options(
              environment_run_option,
              data_file_path_map,
              data_directory_path_map,
          )
      except TaskRunError:
          failed = True
  
      assert failed
  
imports: import os
  import uuid
  import tempfile
  import platform
  from io import open, TextIOWrapper
  from datmo.config import Config
  from datmo.core.controller.project import ProjectController
  from datmo.core.controller.environment.environment import EnvironmentController
  from datmo.core.controller.task import TaskController
  from datmo.core.entity.task import Task
  from datmo.core.util.exceptions import EntityNotFound, TaskRunError, InvalidArgumentType, RequiredArgumentMissing, ProjectNotInitialized, InvalidProjectPath, TooManyArgumentsFound, DoesNotExist
  from datmo.core.util.misc_functions import check_docker_inactive, pytest_docker_environment_failed_instantiation
label_desc: Use image node_id 9 for calling the TestTaskController obj's underlying member method code with example usage: obj.test_update_environment_run_options() without return types