code: def sampling_pick(n):
      """
      'Pick' sampling.
  
      Parameters
      ----------
      n : int
          Number of items to return.
  
      Returns
      -------
      `FeatureSpec`
          Sample specification.
  
      Examples
      --------
      .. jupyter-execute::
          :linenos:
          :emphasize-lines: 7
  
          import numpy as np
          from lets_plot import *
          LetsPlot.setup_html()
          x = np.linspace(-2, 2, 30)
          y = x ** 2
          ggplot({'x': x, 'y': y}, aes(x='x', y='y')) + \\
              geom_line(sampling=sampling_pick(20))
  
      """
      return _sampling("pick", n=n)
  
file_path: lets-plot/python-package/lets_plot/plot/sampling.py
imports: from .core import FeatureSpec
label_desc: Use image node_id 3 for calling a global function with example usage: sampling_pick(n) and returns: _sampling