class_docstr: A wrapper class that allows for easy interaction with a Study.
docstr: Create an VizierClient object.
  
  Use this constructor when you know the study_id, and when the Study
  already exists.  Otherwise, you'll probably want to use
  create_or_load_study() instead of constructing the
  VizierClient class directly.
  
  Args:
      service_client: An API client of Vizier service.
      project_id: A GCP project id.
      region: A GCP region. e.g. 'us-central1'.
      study_id: An identifier of the study. The full study name will be
          `projects/{project_id}/locations/{region}/studies/{study_id}`.
          The full trial name will be `{study name}/trials/{trial_id}`.
docstr_tok: ["Create","an","VizierClient","object",".","Use","this","constructor","when","you","know","the","study_id",",","and","when","the","Study","already","exists",".","Otherwise",",","you","'ll","probably","want","to","use","create_or_load_study","(",")","instead","of","constructing","the","VizierClient","class","directly",".","Args",":","service_client",":","An","API","client","of","Vizier","service",".","project_id",":","A","GCP","project","id",".","region",":","A","GCP","region",".","e.g",".","'us-central1","'",".","study_id",":","An","identifier","of","the","study",".","The","full","study","name","will","be","`","projects\/","{","project_id","}","\/locations\/","{","region","}","\/studies\/","{","study_id","}","`",".","The","full","trial","name","will","be","`","{","study","name","}","\/trials\/","{","trial_id","}","`","."]
code: def __init__(
      self,
      service_client: discovery.Resource,
      project_id: Text,
      region: Text,
      study_id: Optional[Text] = None,
  ):
      """Create an VizierClient object.
  
      Use this constructor when you know the study_id, and when the Study
      already exists.  Otherwise, you'll probably want to use
      create_or_load_study() instead of constructing the
      VizierClient class directly.
  
      Args:
          service_client: An API client of Vizier service.
          project_id: A GCP project id.
          region: A GCP region. e.g. 'us-central1'.
          study_id: An identifier of the study. The full study name will be
              `projects/{project_id}/locations/{region}/studies/{study_id}`.
              The full trial name will be `{study name}/trials/{trial_id}`.
      """
      self.service_client = service_client
      self.project_id = project_id
      self.region = region
      if not study_id:
          raise ValueError(
              "Use create_or_load_study() instead of constructing the"
              "VizierClient class directly"
          )
      self.study_id = study_id
  
imports: import datetime
  import http
  import json
  import time
  from typing import Any, Dict, List, Mapping, Optional, Text, Union
  from googleapiclient import discovery
  from googleapiclient import errors
  import tensorflow
  from tensorflow_cloud.tuner import vizier_client_interface
  from tensorflow_cloud.tuner import constants
  from tensorflow_cloud.utils import google_api_client
label_desc: Use image node_id 1 to create a new _VizierClient object from inherited base classes: vizier_client_interface with example: obj = _VizierClient(service_client, project_id, region, study_id)