code: def _handle_sublists(values):
      # if any of the items is non-scalar, they all must be
      if any(isinstance(x, (list, tuple)) for x in values):
          if not all(
              isinstance(x, (list, tuple))
              for x in values
              if x is not None
          ):
              raise ValueError(
                  "Can't mix scalar and non-scalar values for graph attributes"
              )
          return [[] if x is None else list(x) for x in values]
      return values
  
file_path: bokeh/src/bokeh/plotting/graph.py
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING, Any, Sequence
  from ..models.graphs import StaticLayoutProvider
  from ..models.renderers import GraphRenderer
  from ..util.warnings import warn
label_desc: Use image node_id 2 for calling a global function with example usage: _handle_sublists(values) and returns: values, unknown