code: def test_present_colorscale(self):
      self.assertIsNone(self.scatter.marker.colorscale)
  
      # Assign list of tuples
      self.scatter.marker.colorscale = [(0, "red"), (1, "green")]
  
      # Stored as list of lists
      self.assertEqual(
          self.scatter.to_plotly_json()["marker"]["colorscale"],
          [[0, "red"], [1, "green"]],
      )
  
      # Presented as tuple of tuples
      self.assertEqual(
          self.scatter.marker.colorscale, ((0, "red"), (1, "green"))
      )
  
      # Test colorscale and reversed version
      self.scatter.marker.colorscale = "viridis"
      colorscale = self.scatter.to_plotly_json()["marker"]["colorscale"]
      colorscale = [col[1] for col in colorscale]
      self.scatter.marker.colorscale = "viridis_r"
      colorscale_r = self.scatter.to_plotly_json()["marker"][
          "colorscale"
      ]
      colorscale_r = [col[1] for col in colorscale_r]
      self.assertEqual(colorscale[::-1], colorscale_r)
  
imports: from unittest import TestCase
  import plotly.graph_objs
  import pytest
label_desc: Use image node_id 4 for calling the TestPropertyPresentation obj's underlying member method code with example usage: obj.test_present_colorscale() without return types