docstr: Verify that delete_study gracefully handles 404 errors.
docstr_tok: ["Verify","that","delete_study","gracefully","handles","404","errors","."]
code: def test_delete_study_with_404_raises_ValueError(self):
      """Verify that delete_study gracefully handles 404 errors."""
      mock_request = mock.MagicMock()
      mock_request.execute.side_effect = errors.HttpError(
          httplib2.Response(info={"status": 404}), b""
      )
      mock_delete_study = mock.MagicMock()
      mock_delete_study.return_value = mock_request
      self._mock_discovery.projects().locations().studies().delete = (
          mock_delete_study
      )
  
      with self.assertRaisesRegex(
          ValueError,
          "DeleteStudy failed. Study not found: {}.".format(
              self._trial_parent
          ),
      ):
          self._client.delete_study()
  
imports: from googleapiclient import errors
  import httplib2
  import mock
  import tensorflow
  from tensorflow_cloud.tuner import vizier_client
label_desc: Use image node_id 19 for calling the VizierClientTest obj's underlying member method code with example usage: obj.test_delete_study_with_404_raises_ValueError() without return types