code: def sha1sum_numpy(np_array):
      '''
      Return the secure hash digest with sha1 algorithm for a numpy array
      '''
      import hashlib
      return hashlib.sha1(np_array.view(np.uint8)).hexdigest(f sha1sum_numpy(np_array):
      '''
      Return the secure hash digest with sha1 algorithm for a numpy array
      '''
      import hashlib
      return hashlib.sha1(np_array.view(np.uint8)).hexdigest()
docs: Return the secure hash digest with sha1 algorithm for a numpy array