code: def serverPSW(username, password, gpgPassphrase):
      with open(os.path.join(KEY_PATH, "settings.xml"), "w") as f:
          settingsString = """<?xml version="1.0" encoding="UTF-8"?>
  <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <pluginGroups></pluginGroups>
  <proxies></proxies>
  <servers>
  <server>
          <id>apache.snapshots.https</id>
          <username>{}</username>
          <password>{}</password>
  </server>
  <!-- To stage a release of some part of Maven -->
  <server>
          <id>apache.releases.https</id>
          <username>{}</username>
          <password>{}</password>
  </server>
  </servers>
  <mirrors></mirrors>
  <profiles>
  <profile>
          <id>gpg</id>
          <properties>
          <gpg.executable>gpg2</gpg.executable>
          <gpg.passphrase>{}</gpg.passphrase>
          <gpg.skip>true</gpg.skip>
          </properties>
  </profile>
  </profiles>
  <activeProfiles>
          <activeProfile>gpg</activeProfile>
  </activeProfiles>
  </settings> """.format(
              username, password, username, password, gpgPassphrase
          )
          f.write(settingsString)
  
file_path: mxnet/ci/publish/scala/buildkey.py
imports: import os
  import json
  import logging
  import subprocess
label_desc: Use image node_id 6 for calling a global function with example usage: serverPSW(username, password, gpgPassphrase) without return types