code: def _serialize_rgb_colorscale(
      name: t.Optional[str], values: t.Optional[t.List[ColorscaleList]]
  ):
      return fop.get_colormap(
          name or [[item.value, item.color] for item in values]
      )
  
imports: import base64
  from dataclasses import asdict, dataclass
  import re
  import typing
  import asyncio
  from bson import json_util
  from dacite import from_dict
  import eta.core.serial
  import eta.core.utils
  import fiftyone.core.odm.dataset
  import fiftyone.core.state
  from fiftyone.core.utils import lazy_import, run_sync_task
label_desc: Use image node_id 5 for calling a global function with example usage: _serialize_rgb_colorscale(name, values) and returns: fop