def _to_camel_case(label, divider='_', joiner=' '):
 words = []
 for entry in label.split(divider):
  if (len(entry) == 0):
   words.append('')
  elif (len(entry) == 1):
   words.append(entry.upper())
  else:
   words.append((entry[0].upper() + entry[1:].lower()))
 return joiner.join(words)

def _to_camel_case ( label , divider = '_' , joiner = ' ' ) : words = [ ] for entry in label . split ( divider ) : if ( len ( entry ) == 0 ) : words . append ( '' ) elif ( len ( entry ) == 1 ) : words . append ( entry . upper ( ) ) else : words . append ( ( entry [ 0 ] . upper ( ) + entry [ 1 : ] . lower ( ) ) ) return joiner . join ( words )
converts the given string to camel case .