code: def _construct_url(
      accountId: str,
      mode: str,
      status: str,
      failure_reason: str,
      failure_type: str,
      extra_info: str,
      region: str,
  ) -> str:
      """Placeholder docstring"""
  
      base_url = (
          f"https://dev-exp-t-{region}.s3.{region}.amazonaws.com/telemetry?"
          f"x-accountId={accountId}"
          f"&x-mode={mode}"
          f"&x-status={status}"
      )
      if failure_reason:
          base_url += f"&x-failureReason={failure_reason}"
          base_url += f"&x-failureType={failure_type}"
      if extra_info:
          base_url += f"&x-extra={extra_info}"
      return base_url
  
file_path: sagemaker-python-sdk/src/sagemaker/serve/utils/telemetry_logger.py
imports: from __future__ import absolute_import
  import logging
  import requests
  from sagemaker import Session
  from sagemaker.serve.mode.function_pointers import Mode
  from sagemaker.serve.utils.exceptions import ModelBuilderException
  from sagemaker.serve.utils.types import ModelServer
label_desc: Use image node_id 3 for calling a global function with example usage: _construct_url(accountId, mode, status, failure_reason, failure_type, extra_info, region) and returns: base_url