code: def convertCase(str):
      resStr = ""
      arr = str.split(" ")
      for x in arr:
          resStr = resStr + x[0:1].upper() + x[1 : len(x)] + " "
      return resStr
  
imports: import pyspark
  from pyspark.sql import SparkSession
  from pyspark.sql.functions import col, udf
  from pyspark.sql.types import StringType
label_desc: Use image node_id 1 for calling a global function with example usage: convertCase(str) and returns: resStr