code: def _standardize_plot_spec(plot_spec: Dict) -> Dict:
      """
      :param plot_spec: dict
      """
      if not isinstance(plot_spec, dict):
          raise ValueError(
              "dict expected but was {}".format(type(plot_spec))
          )
  
      return standardize_dict(plot_spec)
  
file_path: lets-plot/python-package/lets_plot/_kbridge.py
imports: from typing import Dict
  import lets_plot_kotlin_bridge
  from ._type_utils import standardize_dict
  from ._global_settings import get_js_cdn_url
label_desc: Use image node_id 4 for calling a global function with example usage: _standardize_plot_spec(plot_spec) and returns: standardize_dict