code: def readFromStrings(df, bytesCol, imageCol="image", dropPrefix=False):
      """
      Reads images from a column of filenames
  
      Args:
          df (DataFrame): The DataFrame to be processed
          pathCol  (str): The name of the column containing filenames
          imageCol (str): The name of the added column of images
  
      Returns:
          df: The dataframe with loaded images
      """
      ctx = SparkContext.getOrCreate()
      jvm = ctx.getOrCreate()._jvm
      reader = jvm.com.microsoft.azure.synapse.ml.io.image.ImageUtils
      jresult = reader.readFromStrings(
          df._jdf, bytesCol, imageCol, dropPrefix
      )
      sql_ctx = pyspark.SQLContext.getOrCreate(ctx)
      return DataFrame(jresult, sql_ctx)
  
imports: import sys
  import pyspark
  from pyspark import SparkContext
  from pyspark import sql
  from pyspark.ml.param.shared import *
  from pyspark.sql import DataFrame
label_desc: Use image node_id 2 for calling a global function with example usage: readFromStrings(df, bytesCol, imageCol, dropPrefix) and returns: DataFrame