code: def test_default_is_scatter(validator):
      val = [dict(mode="lines")]
      res = validator.validate_coerce(val)
      res_present = validator.present(res)
  
      assert isinstance(res, list)
      assert isinstance(res_present, tuple)
      assert isinstance(res_present[0], Scatter)
      assert res_present[0].type == "scatter"
      assert res_present[0].mode == "lines"
  
file_path: plotly.py/packages/python/plotly/_plotly_utils/tests/validators/test_basetraces_validator.py
imports: import pytest
  from _plotly_utils.basevalidators import BaseDataValidator
  from plotly.graph_objs import Scatter, Bar, Box
label_desc: Use image node_id 5 for calling a global function with example usage: test_default_is_scatter(validator) without return types