code: def check_roundtrip(value, engine, pretty):
      encoded = pio.to_json_plotly(value, engine=engine, pretty=pretty)
      decoded = pio.from_json_plotly(encoded, engine=engine)
      reencoded = pio.to_json_plotly(
          decoded, engine=engine, pretty=pretty
      )
      assert encoded == reencoded
  
      # Check from_plotly_json with bytes on Python 3
      if sys.version_info.major == 3:
          encoded_bytes = encoded.encode("utf8")
          decoded_from_bytes = pio.from_json_plotly(
              encoded_bytes, engine=engine
          )
          assert decoded == decoded_from_bytes
  
imports: import pytest
  import plotly.io.json
  import plotly.graph_objects
  import plotly.express
  import numpy
  import pandas
  import json
  import datetime
  import re
  import sys
  import warnings
  from pytz import timezone
  from _plotly_utils.optional_imports import get_module
label_desc: Use image node_id 6 for calling a global function with example usage: check_roundtrip(value, engine, pretty) without return types