#NEWLINE# def TSKVsPartIsAllocated( tsk_vs_part ) : #NEWLINE# #INDENT# 'Determines if the TSK volume system part object is allocated.\n\n  Args:\n    tsk_vs_part: a TSK volume system part object (instance of\n                 pytsk3.TSK_VS_PART_INFO).\n\n  Returns:\n    True if the volume system part is allocated, False otherwise.\n  ' #NEWLINE# tsk_vs_part_flags = getattr ( tsk_vs_part , 'flags' , None ) #NEWLINE# return ( ( tsk_vs_part_flags is not None ) and ( tsk_vs_part_flags == pytsk3 . TSK_VS_PART_FLAG_ALLOC ) )