xlml/utils/gpu.py [176:196]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  metadata_request = compute_v1.SetMetadataInstanceRequest(
      instance=instance_name,
      project=gcp.project_name,
      zone=gcp.zone,
      metadata_resource=metadata,
  )
  operation = instance_client.set_metadata(request=metadata_request)
  if operation.error:
    logging.error(
        (
            "Error during instance set metadata: [Code:"
            f" {operation.http_error_status_code}]:"
            f" {operation.http_error_message}"
            f" {operation.error}"
        ),
    )
    raise operation.exception() or RuntimeError(operation.http_error_message)
  elif operation.warnings:
    logging.warning("Warnings during instance set metadata:\n")
    for warning in operation.warnings:
      logging.warning(f" - {warning.code}: {warning.message}")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



xlml/utils/gpu.py [231:251]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  metadata_request = compute_v1.SetMetadataInstanceRequest(
      instance=instance_name,
      project=gcp.project_name,
      zone=gcp.zone,
      metadata_resource=metadata,
  )
  operation = instance_client.set_metadata(request=metadata_request)
  if operation.error:
    logging.error(
        (
            "Error during instance set metadata: [Code:"
            f" {operation.http_error_status_code}]:"
            f" {operation.http_error_message}"
            f" {operation.error}"
        ),
    )
    raise operation.exception() or RuntimeError(operation.http_error_message)
  elif operation.warnings:
    logging.warning("Warnings during instance set metadata:\n")
    for warning in operation.warnings:
      logging.warning(f" - {warning.code}: {warning.message}")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



