code: def list_trials(self, study_name):
      url = "{}/suggestion/v1/studies/{}/trials".format(
          self.endpoint, study_name
      )
      response = requests.get(url)
      trials = []
  
      if response.ok:
          dicts = response.json()["data"]
          for dict in dicts:
              trial = Trial.from_dict(dict)
              trials.append(trial)
  
      return trials
  
imports: import os
  import json
  import requests
  from .model import Study
  from .model import Trial
  from .model import TrialMetric
label_desc: Use image node_id 8 for calling the AdvisorClient obj's underlying member method code with example usage: obj.list_trials(study_name) and returns: trials