class_docstr: Components that take parameters. This also provides an internal
  param map to store parameter values attached to the instance.
  
  .. versionadded:: 1.3.0
docstr: Validates that the input param belongs to this Params instance.
docstr_tok: ["Validates","that","the","input","param","belongs","to","this","Params","instance","."]
code: def _shouldOwn(self, param: Param) -> None:
      """
      Validates that the input param belongs to this Params instance.
      """
      if not (self.uid == param.parent and self.hasParam(param.name)):
          raise ValueError(
              "Param %r does not belong to %r." % (param, self)
          )
  
imports: import array
  from abc import ABCMeta
  import copy
  from typing import Any, Callable, Generic, List, Optional, overload, TypeVar, Union, TYPE_CHECKING
  import numpy
  from py4j.java_gateway import JavaObject
  from pyspark.ml.linalg import DenseVector, Vector, Matrix
  from pyspark.ml.util import Identifiable
label_desc: Use image node_id 17 for calling the Params obj's underlying member method code with example usage: obj._shouldOwn(param) without return types