code: def compute_patch_size(patch_radius):
      """Compute the patch size from the patch radius: it is twice the radius plus
      one.
  
      Parameters
      ----------
      patch_radius : ndarray
          Patch radius.
  
      Returns
      -------
      int
          Number of samples.
      """
  
      return 2 * patch_radius + 1
  
file_path: dipy/dipy/denoise/localpca.py
imports: import copy
  from packaging.version import Version
  from warnings import warn
  import numpy
  import scipy
  from scipy.linalg import eigh
  from dipy.denoise.pca_noise_estimate import pca_noise_estimate
label_desc: Use image node_id 4 for calling a global function with example usage: compute_patch_size(patch_radius) and returns: unknown