class_docstr: Container for building and publishing anyscale docker images
code: def _should_upload(self) -> bool:
      return self.upload
  
imports: from ci.ray_ci.docker_container import DockerContainer
  from ci.ray_ci.container import _DOCKER_ECR_REPO, _DOCKER_GCP_REGISTRY
label_desc: Use image node_id 2 for calling the AnyscaleDockerContainer obj's underlying member method code with example usage: obj._should_upload() and returns: self