def control_marqo_os(
    container_name: str = "marqo-os",
    command: str = "start",
):
    """Stops a Marqo OS container. If Setup is DIND, This executes a command on the marqo container.

    Args:
        container_name (str): Name of the Docker container to stop. Defaults to 'marqo-os'.
    """
    docker_command = f"docker {command} {container_name}"

    time.sleep(10)
    if "DIND" in os.environ["TESTING_CONFIGURATION"]:
        command_output = subprocess.run(
            f"docker exec marqo sh -c '{docker_command}'",
            shell=True,
            stdout=subprocess.PIPE,
            stderr=subprocess.STDOUT,
            text=True
        )
    else:
        command_output = subprocess.run(
            docker_command,
            shell=True,
            stdout=subprocess.PIPE,
            stderr=subprocess.STDOUT,
            text=True
        )
    time.sleep(10)
    print(command_output.stdout)
Stops a Marqo OS container. If Setup is DIND, This executes a command on the marqo container.

    Args:
        container_name (str): Name of the Docker container to stop. Defaults to 'marqo-os'.
    
tests/api_tests/v1/tests/utilities.py