async def METHOD_NAME() -> int:
    video_ram: ByteSize = ByteSize(0)
    container: DockerContainer | None = None
    async with aiodocker.Docker() as docker:
        spec_config = _nvidia_smi_docker_config(
            [
                "--query-gpu=memory.total",
                "--format=csv,noheader",
            ]
        )
        try:
            container = await docker.containers.run(
                config=spec_config, name=f"sidecar_{uuid.uuid4()}_test_gpu_memory"
            )
            if not container:
                return 0
            container_data = await container.wait(timeout=10)
            container_logs = await cast(
                Coroutine,
                container.log(stdout=True, stderr=True, follow=False),
            )
            video_ram = parse_obj_as(ByteSize, 0)
            if container_data.setdefault("StatusCode", 127) == 0:
                for line in container_logs:
                    video_ram = parse_obj_as(
                        ByteSize, video_ram + parse_obj_as(ByteSize, line)
                    )
        except asyncio.TimeoutError as err:
            logger.warning(
                "num_gpus timedout while check-run %s: %s", spec_config, err
            )
        except aiodocker.exceptions.DockerError as err:
            logger.warning(
                "num_gpus DockerError while check-run %s: %s", spec_config, err
            )
        finally:
            if container is not None:
                await container.delete(v=True, force=True)
        return video_ram