code: def getNetworkFragmentID(self):
          
          print '%s call getNetworkFragmentID' % self.port
          if not self.__isOpenThreadRunning():
              print 'OpenThread is not running'
              return None
  
          leaderData = []
          leaderData = self.__sendCommand('leaderdata')
          return int(leaderData[0].split()[2], 16)
docs: get current partition id of Thread Network Partition from LeaderData
  
          Returns:
              The Thread network Partition Id