class_docstr: Apply defocus transform. See https://arxiv.org/abs/1903.12261.
  
  Args:
      radius ((int, int) or int): range for radius of defocusing.
          If limit is a single int, the range will be [1, limit]. Default: (3, 10).
      alias_blur ((float, float) or float): range for alias_blur of defocusing (sigma of gaussian blur).
          If limit is a single float, the range will be (0, limit). Default: (0.1, 0.5).
      p (float): probability of applying the transform. Default: 0.5.
  
  Targets:
      image
  
  Image types:
      Any
class_docstr_tok: ["Apply","defocus","transform",".","See","https",":","\/\/arxiv.org\/abs\/1903.12261",".","Args",":","radius","(","(","int",",","int",")","or","int",")",":","range","for","radius","of","defocusing",".","If","limit","is","a","single","int",",","the","range","will","be","[","1",",","limit","]",".","Default",":","(","3",",","10",")",".","alias_blur","(","(","float",",","float",")","or","float",")",":","range","for","alias_blur","of","defocusing","(","sigma","of","gaussian","blur",")",".","If","limit","is","a","single","float",",","the","range","will","be","(","0",",","limit",")",".","Default",":","(","0.1",",","0.5",")",".","p","(","float",")",":","probability","of","applying","the","transform",".","Default",":","0.5",".","Targets",":","image","Image","types",":","Any"]
code: def apply(
      self,
      img: np.ndarray,
      radius: int = 3,
      alias_blur: float = 0.5,
      **params,
  ) -> np.ndarray:
      return F.defocus(img, radius, alias_blur)
  
imports: import random
  import warnings
  from typing import Any, Dict, List, Sequence, Tuple
  import cv2
  import numpy
  from albumentations import random_utils
  from albumentations.augmentations import functional
  from albumentations.augmentations.blur import functional
  from albumentations.core.transforms_interface import ImageOnlyTransform, ScaleFloatType, ScaleIntType, to_tuple
label_desc: Use image node_id 2 for calling the Defocus obj's underlying member method code with example usage: obj.apply(img, radius, alias_blur) and returns: F