def bufsize_type_to_bufsize(bf_type):
 if (bf_type == 1):
  bufsize = 1024
 elif (bf_type == 0):
  bufsize = 1
 else:
  bufsize = bf_type
 return bufsize

def bufsize_type_to_bufsize ( bf_type ) : if ( bf_type == 1 ) : bufsize = 1024 elif ( bf_type == 0 ) : bufsize = 1 else : bufsize = bf_type return bufsize
for a given bufsize type .