code: def materializing_display(data):
      if running_on_synapse() or running_on_synapse_internal():
          from notebookutils.visualization import display
  
          if isinstance(data, DataFrame):
              data.collect()
          display(data)
      else:
          print(data)
  
file_path: SynapseML/core/src/main/python/synapse/ml/core/platform/Platform.py
imports: import os
  from pyspark.sql import DataFrame
label_desc: Use image node_id 7 for calling a global function with example usage: materializing_display(data) without return types