code: def test_identity_map():
      fig = px.scatter(
          x=[1, 2],
          y=[1, 2],
          symbol=["a", "b"],
          color=["red", "blue"],
          color_discrete_map=px.IdentityMap(),
      )
      assert fig.data[0].marker.color == "red"
      assert fig.data[1].marker.color == "blue"
      assert "color=" not in fig.data[0].hovertemplate
      assert "symbol=" in fig.data[0].hovertemplate
      assert fig.layout.legend.title.text == "symbol"
  
      fig = px.scatter(
          x=[1, 2],
          y=[1, 2],
          symbol=["a", "b"],
          color=["red", "blue"],
          color_discrete_map="identity",
      )
      assert fig.data[0].marker.color == "red"
      assert fig.data[1].marker.color == "blue"
      assert "color=" not in fig.data[0].hovertemplate
      assert "symbol=" in fig.data[0].hovertemplate
      assert fig.layout.legend.title.text == "symbol"
  
imports: import plotly.express
  import plotly.graph_objects
  import numpy
  import pandas
  import pytest
  from packaging import version
  import unittest.mock
  from plotly.express._core import build_dataframe
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 29 for calling a global function with example usage: test_identity_map() without return types