code: def test_kwarg_takes_precedence(self):
      m = go.scatter.Marker(
          dict(color="green", size=12), color="blue", opacity=0.6
      )
  
      self.assertEqual(
          m.to_plotly_json(),
          {"color": "blue", "size": 12, "opacity": 0.6},
      )
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_constructor.py
imports: from unittest import TestCase
  import plotly.graph_objs
  import pytest
label_desc: Use image node_id 5 for calling the TestGraphObjConstructor obj's underlying member method code with example usage: obj.test_kwarg_takes_precedence() without return types