code: def load_medium(self, model):
          
          media = self.config.get("medium")
          if media is None:
              return
          definitions = media.get("definitions")
          if definitions is None or len(definitions) == 0:
              return
          path = self.get_path(media, join("data", "experimental", "media"))
          for medium_id, medium in iteritems(definitions):
              if medium is None:
                  medium = dict()
              filename = medium.get("filename")
              if filename is None:
                  filename = join(path, "{}.csv".format(medium_id))
              elif not isabs(filename):
                  filename = join(path, filename)
              tmp = Medium(identifier=medium_id, obj=medium, filename=filename)
              tmp.load()
              tmp.validate(model)
              self.media[medium_id] = tmp
docs: Load and validate all media.