docs: def create_config(self, name, data, labels=None):
          """
              Create a config
  
              Args:
                  name (string): Name of the config
                  data (bytes): Config data to be stored
                  labels (dict): A mapping of labels to assign to the config
  
              Returns (dict): ID of the newly created config
          """
          if not isinstance(data, bytes):
              data = data.encode('utf-8')
  
          data = base64.b64encode(data)
          if six.PY3:
              data = data.decode('ascii')
          body = {
              'Data': data,
              'Name': name,
              'Labels': labels
          }
  
          url = self._url('/configs/create')
          return self._result(
              self._post_json(url, data=body), True
          )