code: def _set_format(profile):
      
      x = set()
      for sample in profile:
          x = x.union(set(profile[sample].keys()))
      if not x:
          return ''
      end, start = max(x), min(x)
      x = range(start, end, 4)
      scaled_profile = defaultdict(list)
      for pos in x:
          for sample in profile:
              y = _get_closer(profile[sample], pos)
              if y:
                  scaled_profile[sample].append(profile[sample][y])
              else:
                  scaled_profile[sample].append(0)
      return {'x': list(x), 'y': scaled_profile, 'names': scaled_profile.keys()}
docs: Prepare dict to list of y values with same x