code: def test_datetime_json_encoding(self):
      j1 = _json.dumps(dt_list, cls=utils.PlotlyJSONEncoder)
      assert (
          j1 == '["2014-01-05T00:00:00", '
          '"2014-01-05T01:01:01", '
          '"2014-01-05T01:01:01.000001"]'
      )
      j2 = _json.dumps({"x": dt_list}, cls=utils.PlotlyJSONEncoder)
      assert (
          j2 == '{"x": ["2014-01-05T00:00:00", '
          '"2014-01-05T01:01:01", '
          '"2014-01-05T01:01:01.000001"]}'
      )
  
imports: import datetime
  import math
  import decimal
  from datetime import datetime
  from unittest import TestCase
  from time import time
  import pytest
  import numpy
  import pandas
  import pytz
  from pandas.testing import assert_series_equal
  import json
  import os
  import base64
  from plotly import optional_imports, utils
  import plotly.graph_objects
  from plotly.graph_objs import Scatter, Scatter3d, Figure, Data
  from plotly.utils import get_by_path
  from PIL import Image
label_desc: Use image node_id 11 for calling the TestJSONEncoder obj's underlying member method code with example usage: obj.test_datetime_json_encoding() without return types