def _is_xblock_reorderable(xblock, context):
 try:
  return (xblock.location in context['reorderable_items'])
 except KeyError:
  return False

def _is_xblock_reorderable ( xblock , context ) : try : return ( xblock . location in context [ 'reorderable_items' ] ) except KeyError : return False
returns true if the specified xblock is in the set of reorderable xblocks otherwise returns false .