@retrying.retry(<EOL>stop_max_attempt_number=<NUM_LIT>,<EOL>retry_on_exception=retry_api_check,<EOL>wait_exponential_multiplier=<NUM_LIT>,<EOL>wait_exponential_max=<NUM_LIT>)<EOL>@retrying.retry(<EOL>stop_max_attempt_number=<NUM_LIT:5>,<EOL>retry_on_exception=retry_auth_check,<EOL>wait_exponential_multiplier=<NUM_LIT>,<EOL>wait_exponential_max=<NUM_LIT>)<EOL>def setup_service(api_name, api_version, credentials=None):
if not credentials:<EOL><INDENT>credentials = oauth2client.client.GoogleCredentials.get_application_default(<EOL>)<EOL><DEDENT>return apiclient.discovery.build(<EOL>api_name, api_version, credentials=credentials)<EOL>
Configures genomics API client.

    Args:
      api_name: Name of the Google API (for example: "genomics")
      api_version: Version of the API (for example: "v2alpha1")
      credentials: Credentials to be used for the gcloud API calls.

    Returns:
      A configured Google Genomics API client with appropriate credentials.