code: def style_layout(
      self: Plottable,
      encode_color=True,
      colors: Optional[List[str]] = None,
      partition_key="partition",
      engine: Engine = Engine.PANDAS,
  ) -> "Plottable":
      g = self.layout_settings(play=0)
  
      if not encode_color:
          return g
  
      return categorical_color_by_col(g, partition_key, colors, engine)
  
file_path: pygraphistry/graphistry/layout/gib/style.py
imports: from typing import Any, Dict, List, Optional
  from functools import lru_cache
  from graphistry.Engine import Engine, df_concat, df_to_pdf, df_cons
  from graphistry.Plottable import Plottable
  from graphistry.util import setup_logger
label_desc: Use image node_id 3 for calling a global function with example usage: style_layout(encode_color, colors, partition_key, engine) and returns: categorical_color_by_col, g