code: def get_medium_attachments_of_controller(self, name):
          
          if not isinstance(name, basestring):
              raise TypeError("name can only be an instance of type basestring")
          medium_attachments = self._call("getMediumAttachmentsOfController",
                       in_p=[name])
          medium_attachments = [IMediumAttachment(a) for a in medium_attachments]
          return medium_attachments
docs: Returns an array of medium attachments which are attached to the
          the controller with the given name.
  
          in name of type str
  
          return medium_attachments of type :class:`IMediumAttachment`
  
          raises :class:`VBoxErrorObjectNotFound`
              A storage controller with given name doesn't exist.