code: def execute_docker_command(
      self,
      command: str,
      env: Optional[Dict[str, str]] = None,
      quiet: bool = False,
  ):
      def command_wrapper(s):
          escaped = s.replace("'", "'\"'\"'")
          return (
              f"docker exec -it ray_container /bin/bash -ci '{escaped}'"
          )
  
      self.execute_ssh_command(
          command, env=env, quiet=quiet, command_wrapper=command_wrapper
      )
  
imports: import base64
  import json
  import logging
  import os
  import random
  import re
  import shlex
  import subprocess
  import threading
  import time
  from numbers import Number
  from typing import Any, Dict, List, Optional, Callable
  import boto3
  import click
  import paramiko
  import yaml
  from pybuildkite.buildkite import Buildkite
label_desc: Use image node_id 13 for calling the ReproSession obj's underlying member method code with example usage: obj.execute_docker_command(command, env, quiet) and returns: str, escaped, str