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: Changes the uid of this instance. This updates both
  the stored uid and the parent uid of params and param maps.
  This is used by persistence (loading).
  
  Parameters
  ----------
  newUid
      new uid to use, which is converted to unicode
  
  Returns
  -------
  :py:class:`Params`
      same instance, but with the uid and Param.parent values
      updated, including within param maps
docstr_tok: ["Changes","the","uid","of","this","instance",".","This","updates","both","the","stored","uid","and","the","parent","uid","of","params","and","param","maps",".","This","is","used","by","persistence","(","loading",")",".","Parameters","--","--","--","--","--","newUid","new","uid","to","use",",","which","is","converted","to","unicode","Returns","--","--","--","-",":","py",":","class",":","`","Params","`","same","instance",",","but","with","the","uid","and","Param.parent","values","updated",",","including","within","param","maps"]
code: def _resetUid(self: P, newUid: Any) -> P:
      """
      Changes the uid of this instance. This updates both
      the stored uid and the parent uid of params and param maps.
      This is used by persistence (loading).
  
      Parameters
      ----------
      newUid
          new uid to use, which is converted to unicode
  
      Returns
      -------
      :py:class:`Params`
          same instance, but with the uid and Param.parent values
          updated, including within param maps
      """
      newUid = str(newUid)
      self.uid = newUid
      newDefaultParamMap = dict()
      newParamMap = dict()
      for param in self.params:
          newParam = copy.copy(param)
          newParam.parent = newUid
          if param in self._defaultParamMap:
              newDefaultParamMap[newParam] = self._defaultParamMap[
                  param
              ]
          if param in self._paramMap:
              newParamMap[newParam] = self._paramMap[param]
          param.parent = newUid
      self._defaultParamMap = newDefaultParamMap
      self._paramMap = newParamMap
      return 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 25 for calling the Params obj's underlying member method code with example usage: obj._resetUid(newUid) and returns: self