def is_eof_layer(layer):
 if (int(layer[4], 16) is 254):
  return True
 return False

def is_eof_layer ( layer ) : if ( int ( layer [ 4 ] , 16 ) is 254 ) : return True return False
check if layer is an eof layer .