code: def json_engine(engine):
      import plotly.io as pio
  
      original_engine = pio.json.config.default_engine
      try:
          pio.json.config.default_engine = engine
          yield
      finally:
          pio.json.config.default_engine = original_engine
  
imports: import time
  import contextlib
label_desc: Use image node_id 3 for calling a global function with example usage: json_engine(engine) without return types