code: def role(self):
          
          try:
              self._role = c_char(
                  self.lib.iperf_get_test_role(self._test)
              ).value.decode('utf-8')
          except TypeError:
              self._role = c_char(
                  chr(self.lib.iperf_get_test_role(self._test))
              ).value.decode('utf-8')
          return self._role
docs: The iperf3 instance role
  
          valid roles are 'c'=client and 's'=server
  
          :rtype: 'c' or 's'