code: def add_python_helper_to_markdown(folder, md, version):
      replacement = """<!--
  ```python
  import pyspark
  import os
  import json
  from IPython.display import display
  from pyspark.sql.functions import *
  
  os.environ["PYSPARK_PYTHON"] = "python"
  os.environ["PYSPARK_DRIVER_PYTHON"] = "jupyter"
  os.environ["PYSPARK_DRIVER_PYTHON_OPTS"] = "notebook"
  
  spark = (pyspark.sql.SparkSession.builder.appName("MyApp")
          .config("spark.jars.packages", "com.microsoft.azure:synapseml_2.12:{}")
          .config("spark.jars.repositories", "https://mmlspark.azureedge.net/maven")
          .getOrCreate())
  
  def getSecret(secretName):
          get_secret_cmd = 'az keyvault secret show --vault-name mmlspark-build-keys --name {{}}'.format(secretName)
          value = json.loads(os.popen(get_secret_cmd).read())["value"]
          return value
  
  import synapse.ml
  ```
  -->
  
  <!--pytest-codeblocks:cont-->""".format(
          version,
      )
      with io.open(
          os.path.join(folder, md), "r+", encoding="utf-8"
      ) as f:
          content = f.read()
          f.truncate(0)
          content = re.sub(
              "<!--pytest-codeblocks:cont-->", replacement, content
          )
          f.seek(0, 0)
          f.write(content)
          f.close()
  
imports: import io
  import os
  import re
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: add_python_helper_to_markdown(folder, md, version) without return types