def _get_type_id_options(name, configuration):
 if ('.' in name):
  (type_, sep, id_) = name.partition('.')
  options = configuration
 else:
  type_ = next(six.iterkeys(configuration))
  id_ = name
  options = configuration[type_]
 return (type_, id_, options)

def _get_type_id_options ( name , configuration ) : if ( '.' in name ) : ( type_ , sep , id_ ) = name . partition ( '.' ) options = configuration else : type_ = next ( six . iterkeys ( configuration ) ) id_ = name options = configuration [ type_ ] return ( type_ , id_ , options )
returns the type .