docs: def get_shm_volumes():
      """
      Mount an tmpfs volume to /dev/shm.
      This will set /dev/shm size to half of the RAM of node.
      By default, /dev/shm is very small, only 64MB.
      Some experiments will fail due to lack of share memory,
      such as some experiments running on Pytorch.
      """
      volumes, volume_mounts = [], []
      shm_volume = client.V1Volume(
          name=constants.SHM_VOLUME,
          empty_dir=client.V1EmptyDirVolumeSource(medium='Memory')
      )
      volumes.append(shm_volume)
      shm_volume_mount = client.V1VolumeMount(name=shm_volume.name, mount_path='/dev/shm')
      volume_mounts.append(shm_volume_mount)
      return volumes, volume_mounts