def METHOD_NAME(
    self,
    client,
    image: str,
    command: Union[str, Sequence[str]],
    env: Optional[Mapping[str, str]],
    container_kwargs: Optional[Mapping[str, Any]],
    ext_env: Mapping[str, str],
):
    kwargs = dict(container_kwargs or {})
    kwargs_env = kwargs.pop("environment", {})
    return client.containers.create(
        image=image,
        command=command,
        detach=True,
        environment={
            **self.get_base_env(),
            **ext_env,
            **(self.env or {}),
            **(env or {}),
            **kwargs_env,
        },
        **kwargs,
    )