code: def ggsize(width, height):
      """
      Specify overall size of plot.
  
      Parameters
      ----------
      width : int
          Width of plot in px.
      height : int
          Height of plot in px.
  
      Returns
      -------
      `FeatureSpec`
          Plot size specification.
  
      Examples
      --------
      .. jupyter-execute::
          :linenos:
          :emphasize-lines: 8
  
          import numpy as np
          from lets_plot import *
          LetsPlot.setup_html()
          np.random.seed(42)
          x = np.arange(50)
          y = np.random.normal(size=50)
          data = {'x': x, 'y': y}
          ggplot(data) + geom_line(aes('x', 'y')) + ggsize(400, 150)
  
      """
      assert isinstance(
          width, numbers.Number
      ), "'width' must be numeric"
      assert isinstance(
          height, numbers.Number
      ), "'height' must be numeric"
  
      max_width = (
          get_global_val(MAX_WIDTH)
          if has_global_value(MAX_WIDTH)
          else 10_000
      )
      max_height = (
          get_global_val(MAX_HEIGHT)
          if has_global_value(MAX_HEIGHT)
          else 10_000
      )
  
      assert (
          width <= max_width
      ), "'width' must be less than or equal to " + str(max_width)
      assert (
          height <= max_height
      ), "'height' must be less than or equal to " + str(max_height)
  
      return FeatureSpec(
          "ggsize", name=None, width=width, height=height
      )
  
file_path: lets-plot/python-package/lets_plot/plot/plot.py
imports: import json
  import numbers
  from lets_plot._global_settings import has_global_value, get_global_val, MAX_WIDTH, MAX_HEIGHT, PLOT_THEME
  from lets_plot.geo_data_internals.utils import is_geocoder
  from lets_plot.plot.core import FeatureSpec
  from lets_plot.plot.core import PlotSpec
  from lets_plot.plot.util import as_annotated_data
label_desc: Use image node_id 2 for calling a global function with example usage: ggsize(width, height) and returns: FeatureSpec