code: def test_line_mode(extra_kwargs, expected_mode):
      gapminder = px.data.gapminder()
      fig = px.line(
          gapminder,
          x="year",
          y="pop",
          color="country",
          **extra_kwargs,
      )
      assert fig.data[0].mode == expected_mode
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_optional/test_px/test_px.py
imports: import plotly.express
  import plotly.io
  import numpy
  import pytest
  from itertools import permutations
label_desc: Use image node_id 4 for calling a global function with example usage: test_line_mode(extra_kwargs, expected_mode) without return types