code: def generate_rsa_key_pair():
      """Create public and private ssh-keys."""
  
      key = rsa.generate_private_key(
          backend=default_backend(),
          public_exponent=65537,
          key_size=2048,
      )
  
      public_key = (
          key.public_key()
          .public_bytes(
              serialization.Encoding.OpenSSH,
              serialization.PublicFormat.OpenSSH,
          )
          .decode("utf-8")
      )
  
      pem = key.private_bytes(
          encoding=serialization.Encoding.PEM,
          format=serialization.PrivateFormat.TraditionalOpenSSL,
          encryption_algorithm=serialization.NoEncryption(),
      ).decode("utf-8")
  
      return public_key, pem
  
imports: import copy
  import json
  import logging
  import os
  import re
  import time
  from functools import partial, reduce
  from cryptography.hazmat.backends import default_backend
  from cryptography.hazmat.primitives import serialization
  from cryptography.hazmat.primitives.asymmetric import rsa
  from google.oauth2 import service_account
  from google.oauth2.credentials import Credentials
  from googleapiclient import discovery, errors
  from ray._private.accelerators import TPUAcceleratorManager, tpu
  from ray.autoscaler._private.gcp.node import MAX_POLLS, POLL_INTERVAL, GCPNodeType
  from ray.autoscaler._private.util import check_legacy_fields
label_desc: Use image node_id 10 for calling a global function with example usage: generate_rsa_key_pair() and returns: public_key,  pem