<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_mode(self, name, value=None, default=False, disable=False):
 """Configures the switchport mode Args: name (string):
 The interface identifier to create the logical layer 2 switchport for. The name must be the full interface name and not an abbreviated interface name (eg Ethernet1, not Et1) value (string):
 The value to set the mode to. Accepted values for this argument are access or trunk default (bool):
 Configures the mode parameter to its default value using the EOS CLI disable (bool):
 Negate the mode parameter using the EOS CLI Returns: True if the create operation succeeds otherwise False. """

        string = 'switchport mode'
        command = self.command_builder(string, value=value, default=default,
                                       disable=disable)
        return self.configure_interface(name, command)