code: def _get_snapshot(name, suffix, array):
      '''Private function to check snapshot'''
      snapshot = name + '.' + suffix
      try:
          for snap in array.get_volume(name, snap=True):
              if snap['name'] == snapshot:
                  return snapshot
      except purestorage.PureError:
          return Nonf _get_snapshot(name, suffix, array):
      '''Private function to check snapshot'''
      snapshot = name + '.' + suffix
      try:
          for snap in array.get_volume(name, snap=True):
              if snap['name'] == snapshot:
                  return snapshot
      except purestorage.PureError:
          return None
docs: Private function to check snapshot