code: def getNetworkFragmentID(self):
          
          print '%s call getNetworkFragmentID' % self.port
          if not self.____isOpenThreadWpanRunning():
              print 'OpenThreadWpan is not running'
              return None
  
          return self.__sendCommand(WPANCTL_CMD + 'getprop -v Network:PartitionId')[0]
docs: get current partition id of Thread Network Partition from LeaderData
  
          Returns:
              The Thread network Partition Id