code: def cripple_password(word, k):
      crippled_password = random.sample(list(enumerate(word)), k=k)
      word_letters_list = map(itemgetter(1), sorted(crippled_password))
      return "".join(word_letters_list)
  
file_path: neupy/examples/memory/password_recovery.py
imports: from __future__ import division, print_function
  import random
  import pprint
  import string
  from collections import OrderedDict
  from operator import itemgetter
  import numpy
  from tqdm import tqdm
  from neupy import algorithms
label_desc: Use image node_id 8 for calling a global function with example usage: cripple_password(word, k) and returns: str