code: def add_trial(self, name, specification):
          
          payload = {"name": name, "spec": specification}
          response = requests.post(urljoin(self._path, "trials"), json=payload)
          return self._deserialize(response)
docs: Adds a trial by name and specification (dict).