<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_dhcp_server(self, name):
 """Creates a DHCP server settings to be used for the given internal network name in name of type str server name return server of type :class:`IDHCPServer` DHCP server settings raises :class:`OleErrorInvalidarg` Host network interface @a name already exists. """

        if not isinstance(name, basestring):
            raise TypeError("name can only be an instance of type basestring")
        server = self._call("createDHCPServer",
                     in_p=[name])
        server = IDHCPServer(server)
        return server