code: def iso_to_plotly_time_string(iso_string):
      """Remove timezone info and replace 'T' delimeter with ' ' (ws)."""
      # make sure we don't send timezone info to plotly
      if (iso_string.split("-")[:3] == "00:00") or (
          iso_string.split("+")[0] == "00:00"
      ):
          raise Exception(
              "Plotly won't accept timestrings with timezone info.\n"
              "All timestrings are assumed to be in UTC."
          )
  
      iso_string = iso_string.replace("-00:00", "").replace(
          "+00:00", ""
      )
  
      if iso_string.endswith("T00:00:00"):
          return iso_string.replace("T00:00:00", "")
      else:
          return iso_string.replace("T", " ")
  
imports: import decimal
  import json
  import sys
  import re
  from functools import reduce
  from _plotly_utils.optional_imports import get_module
  from _plotly_utils.basevalidators import ImageUriValidator
label_desc: Use image node_id 2 for calling a global function with example usage: iso_to_plotly_time_string(iso_string) and returns: iso_string, iso_string