parameters: (project_id, skeleton_id, over_annotation_set,
          under_annotation_set)
return_statement: return False
docstring: With respect to annotations, a split is only correct if one part keeps
      the whole set of annotations.
docstring_summary: With respect to annotations, a split is only correct if one part keeps
      the whole set of annotations.
docstring_tokens: With respect to annotations a split is only correct if one part keeps the whole set of annotations .
function: def check_annotations_on_split(project_id, skeleton_id, over_annotation_set,
          under_annotation_set) -> bool:
      """ With respect to annotations, a split is only correct if one part keeps
      the whole set of annotations.
      """
      # Get current annotation set
      annotation_query = create_annotation_query(project_id,
          {'skeleton_id': skeleton_id})
  
      # Check if current set is equal to under or over set
      current_annotation_set = frozenset(a.name for a in annotation_query)
      if not current_annotation_set.difference(over_annotation_set):
          return True
      if not current_annotation_set.difference(under_annotation_set):
          return True
  
      return False
function_tokens: def check_annotations_on_split ( project_id , skeleton_id , over_annotation_set , under_annotation_set ) -> bool : # Get current annotation set annotation_query = create_annotation_query ( project_id , { 'skeleton_id' : skeleton_id } ) # Check if current set is equal to under or over set current_annotation_set = frozenset ( a . name for a in annotation_query ) if not current_annotation_set . difference ( over_annotation_set ) : return True if not current_annotation_set . difference ( under_annotation_set ) : return True return False