code: def build_save_image_post_script(
      image, image_filename, image_height, image_width, caller
  ):
      if image:
          if image not in __IMAGE_FORMATS:
              raise ValueError(
                  "The image parameter must be one of the "
                  "following: {}".format(__IMAGE_FORMATS)
              )
  
          script = get_image_download_script(caller)
          post_script = script.format(
              format=image,
              width=image_width,
              height=image_height,
              filename=image_filename,
          )
      else:
          post_script = None
  
      return post_script
  
file_path: catboost/contrib/python/plotly/py3/plotly/offline/offline.py
imports: import os
  import warnings
  import pkgutil
  from plotly.optional_imports import get_module
  from plotly import tools
  from ._plotlyjs_version import __plotlyjs_version__
label_desc: Use image node_id 8 for calling a global function with example usage: build_save_image_post_script(image, image_filename, image_height, image_width, caller) and returns: post_script