def read_user_dict(var_name, default_value):
 if (not isinstance(default_value, dict)):
  raise TypeError
 default_display = 'default'
 user_value = click.prompt(var_name, default=default_display, type=click.STRING, value_proc=process_json)
 if (user_value == default_display):
  return default_value
 return user_value

def read_user_dict ( var_name , default_value ) : if ( not isinstance ( default_value , dict ) ) : raise TypeError default_display = 'default' user_value = click . prompt ( var_name , default = default_display , type = click . STRING , value_proc = process_json ) if ( user_value == default_display ) : return default_value return user_value
prompt the user to provide a dictionary of data .