<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_medium_attachments_of_controller(self, name):
 """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. """

        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