class_docstr: Hook for the Google Cloud Life Sciences APIs.
  
  .. warning::
      This hook is deprecated. Consider using Google Cloud Batch Operators' hook instead.
      The Life Sciences API (beta) will be discontinued on July 8, 2025 in favor
      of Google Cloud Batch.
  
  All the methods in the hook where project_id is used must be called with
  keyword arguments rather than positional.
  
  :param api_version: API version used (for example v1 or v1beta1).
  :param gcp_conn_id: The connection ID to use when fetching connection info.
  :param impersonation_chain: Optional service account to impersonate using short-term
      credentials, or chained list of accounts required to get the access_token
      of the last account in the list, which will be impersonated in the request.
      If set as a string, the account must grant the originating account
      the Service Account Token Creator IAM role.
      If set as a sequence, the identities from the list must grant
      Service Account Token Creator IAM role to the directly preceding identity, with first
      account from the list granting this role to the originating account.
class_docstr_tok: ["Hook","for","the","Google","Cloud","Life","Sciences","APIs",".","..","warning",":",":","This","hook","is","deprecated",".","Consider","using","Google","Cloud","Batch","Operators","'","hook","instead",".","The","Life","Sciences","API","(","beta",")","will","be","discontinued","on","July","8",",","2025","in","favor","of","Google","Cloud","Batch",".","All","the","methods","in","the","hook","where","project_id","is","used","must","be","called","with","keyword","arguments","rather","than","positional",".",":","param","api_version",":","API","version","used","(","for","example","v1","or","v1beta1",")",".",":","param","gcp_conn_id",":","The","connection","ID","to","use","when","fetching","connection","info",".",":","param","impersonation_chain",":","Optional","service","account","to","impersonate","using","short-term","credentials",",","or","chained","list","of","accounts","required","to","get","the","access_token","of","the","last","account","in","the","list",",","which","will","be","impersonated","in","the","request",".","If","set","as","a","string",",","the","account","must","grant","the","originating","account","the","Service","Account","Token","Creator","IAM","role",".","If","set","as","a","sequence",",","the","identities","from","the","list","must","grant","Service","Account","Token","Creator","IAM","role","to","the","directly","preceding","identity",",","with","first","account","from","the","list","granting","this","role","to","the","originating","account","."]
docstr: Return a location string.
  
  :param project_id: Optional, Google Cloud Project project_id where the
      function belongs. If set to None or missing, the default project_id
      from the Google Cloud connection is used.
  :param location: The location of the project. For example: "us-east1".
docstr_tok: ["Return","a","location","string",".",":","param","project_id",":","Optional",",","Google","Cloud","Project","project_id","where","the","function","belongs",".","If","set","to","None","or","missing",",","the","default","project_id","from","the","Google","Cloud","connection","is","used",".",":","param","location",":","The","location","of","the","project",".","For","example",":","``","us-east1","''","."]
code: def _location_path(self, project_id: str, location: str) -> str:
      """
      Return a location string.
  
      :param project_id: Optional, Google Cloud Project project_id where the
          function belongs. If set to None or missing, the default project_id
          from the Google Cloud connection is used.
      :param location: The location of the project. For example: "us-east1".
      """
      return google.api_core.path_template.expand(
          "projects/{project}/locations/{location}",
          project=project_id,
          location=location,
      )
  
file_path: airflow/airflow/providers/google/cloud/hooks/life_sciences.py
imports: from __future__ import annotations
  import time
  import warnings
  from typing import Sequence
  import google.api_core.path_template
  from googleapiclient.discovery import build
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
  from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
label_desc: Use image node_id 4 for calling the LifeSciencesHook obj's underlying member method code with example usage: obj._location_path(project_id, location) and returns: google