def indeterminate(seg):
 if seg._uploaded:
  if seg.explicit:
   assert (seg._marked is False)
  else:
   assert (seg._marked is True)
 else:
  assert (seg._marked is False)
 return True

def indeterminate ( seg ) : if seg . _uploaded : if seg . explicit : assert ( seg . _marked is False ) else : assert ( seg . _marked is True ) else : assert ( seg . _marked is False ) return True
returns true as long as the segment is internally consistent .