def _advanced_component_types(show_unsupported):
 enabled_block_types = _filter_disabled_blocks(ADVANCED_COMPONENT_TYPES)
 if XBlockStudioConfigurationFlag.is_enabled():
  authorable_blocks = authorable_xblocks(allow_unsupported=show_unsupported)
  filtered_blocks = {}
  for block in authorable_blocks:
   if (block.name in enabled_block_types):
    filtered_blocks[block.name] = block.support_level
  return filtered_blocks
 else:
  all_blocks = {}
  for block_name in enabled_block_types:
   all_blocks[block_name] = True
  return all_blocks

def _advanced_component_types ( show_unsupported ) : enabled_block_types = _filter_disabled_blocks ( ADVANCED_COMPONENT_TYPES ) if XBlockStudioConfigurationFlag . is_enabled ( ) : authorable_blocks = authorable_xblocks ( allow_unsupported = show_unsupported ) filtered_blocks = { } for block in authorable_blocks : if ( block . name in enabled_block_types ) : filtered_blocks [ block . name ] = block . support_level return filtered_blocks else : all_blocks = { } for block_name in enabled_block_types : all_blocks [ block_name ] = True return all_blocks
return advanced component types which can be created .