code: def writeToPowerBI(df, url, options=dict()):
      jvm = SparkContext.getOrCreate()._jvm
      writer = (
          jvm.com.microsoft.azure.synapse.ml.io.powerbi.PowerBIWriter
      )
      writer.write(df._jdf, url, options)
  
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: writeToPowerBI(df, url, options) without return types