code: def default_engine(self, val):
      if val not in JsonConfig._valid_engines:
          raise ValueError(
              "Supported JSON engines include {valid}\n"
              "    Received {val}".format(
                  valid=JsonConfig._valid_engines, val=val
              )
          )
  
      if val == "orjson":
          self.validate_orjson()
  
      self._default_engine = val
  
imports: import json
  import decimal
  import datetime
  import warnings
  from pathlib import Path
  from plotly.io._utils import validate_coerce_fig_to_dict, validate_coerce_output_type
  from _plotly_utils.optional_imports import get_module
  from _plotly_utils.basevalidators import ImageUriValidator
label_desc: Use image node_id 3 for calling the JsonConfig obj's underlying member method code with example usage: obj.default_engine(val) without return types