def xblock_has_own_studio_page(xblock, parent_xblock=None):
 category = xblock.category
 if is_unit(xblock, parent_xblock):
  return True
 elif (category == 'vertical'):
  if (parent_xblock is None):
   parent_xblock = get_parent_xblock(xblock)
  return (is_unit(parent_xblock) if parent_xblock else False)
 return xblock.has_children

def xblock_has_own_studio_page ( xblock , parent_xblock = None ) : category = xblock . category if is_unit ( xblock , parent_xblock ) : return True elif ( category == 'vertical' ) : if ( parent_xblock is None ) : parent_xblock = get_parent_xblock ( xblock ) return ( is_unit ( parent_xblock ) if parent_xblock else False ) return xblock . has_children
returns true if the specified xblock has an associated studio page .