class_docstr: Dictionary version of RandSmoothDeform.
  
  The field is randomized once per invocation by default so the same field is applied to every selected key. The
  `field_mode` parameter specifying interpolation mode for the field can be a single value or a sequence of values
  with one for each key in `keys`. Similarly the `grid_mode` parameter can be one value or one per key.
  
  Args:
      keys: key names to apply the augment to
      spatial_size: input array size to which deformation grid is interpolated
      rand_size: size of the randomized field to start from
      pad: number of pixels/voxels along the edges of the field to pad with 0
      field_mode: interpolation mode to use when upsampling the deformation field
      align_corners: if True align the corners when upsampling field
      prob: probability transform is applied
      def_range: value of the deformation range in image size fractions
      grid_dtype: type for the deformation grid calculated from the field
      grid_mode: interpolation mode used for sampling input using deformation grid
      grid_padding_mode: padding mode used for sampling input using deformation grid
      grid_align_corners: if True align the corners when sampling the deformation grid
      device: Pytorch device to define field on
code: def set_random_state(
      self,
      seed: int | None = None,
      state: np.random.RandomState | None = None,
  ) -> RandSmoothDeformd:
      super().set_random_state(seed, state)
      self.trans.set_random_state(seed, state)
      return self
  
imports: from __future__ import annotations
  from collections.abc import Hashable, Mapping, Sequence
  from typing import Any
  import numpy
  import torch
  from monai.config import KeysCollection, SequenceStr
  from monai.config.type_definitions import NdarrayOrTensor
  from monai.data.meta_obj import get_track_meta
  from monai.transforms.smooth_field.array import RandSmoothDeform, RandSmoothFieldAdjustContrast, RandSmoothFieldAdjustIntensity
  from monai.transforms.transform import MapTransform, RandomizableTransform
  from monai.utils import GridSampleMode, GridSamplePadMode, InterpolateMode, convert_to_tensor, ensure_tuple_rep
label_desc: Use image node_id 2 for calling the RandSmoothDeformd obj's underlying member method code with example usage: obj.set_random_state(seed, state) and returns: self