parameters: (self)
return_statement: return data
docstring: Get the Thread Leader Data.
docstring_summary: Get the Thread Leader Data.
docstring_tokens: Get the Thread Leader Data .
function: def get_leader_data(self) -> Dict[str, int]:
          """Get the Thread Leader Data."""
          data = {}
          output = self.execute_command('leaderdata')
  
          try:
              for line in output:
                  k, v = line.split(': ')
                  data[OTCI.__LEADER_DATA_KEY_MAP[k]] = int(v)
          except KeyError:
              raise UnexpectedCommandOutput(output)
  
          return data
function_tokens: def get_leader_data ( self ) -> Dict [ str , int ] : data = { } output = self . execute_command ( 'leaderdata' ) try : for line in output : k , v = line . split ( ': ' ) data [ OTCI . __LEADER_DATA_KEY_MAP [ k ] ] = int ( v ) except KeyError : raise UnexpectedCommandOutput ( output ) return data