class_docstr: Operation which automatically links selections between elements
  in the supplied HoloViews object. Can be used a single time or
  be used as an instance to apply the linked selections across
  multiple objects.
class_docstr_tok: ["Operation","which","automatically","links","selections","between","elements","in","the","supplied","HoloViews","object",".","Can","be","used","a","single","time","or","be","used","as","an","instance","to","apply","the","linked","selections","across","multiple","objects","."]
docstr: Returns a parameter which reflects the current selection
  when applied to the supplied data, making it easy to create
  a callback which depends on the current selection.
  
  Args:
      data: A Dataset type or data which can be cast to a Dataset
  
  Returns:
      A parameter which reflects the current selection
code: def selection_param(self, data):
      """
      Returns a parameter which reflects the current selection
      when applied to the supplied data, making it easy to create
      a callback which depends on the current selection.
  
      Args:
          data: A Dataset type or data which can be cast to a Dataset
  
      Returns:
          A parameter which reflects the current selection
      """
      raw = False
      if not isinstance(data, Dataset):
          raw = True
          data = Dataset(data)
      pipe = Pipe(data=data.data)
      self._datasets.append((pipe, data, raw))
      return pipe.param.data
  
imports: from collections import namedtuple
  import numpy
  import param
  from param.parameterized import bothmethod
  from .core.data import Dataset
  from .core.element import Element, Layout
  from .core.layout import AdjointLayout
  from .core.options import CallbackError, Store
  from .core.overlay import NdOverlay, Overlay
  from .core.spaces import GridSpace
  from .streams import CrossFilterSet, Derived, Pipe, PlotReset, SelectionExprSequence, SelectMode, Stream
  from .util import DynamicMap
label_desc: Use image node_id 3 for calling the link_selections obj's underlying member method code with example usage: obj.selection_param(data) and returns: pipe