def METHOD_NAME(self, interface_name, speed):
    """Set interface speed according to the auto negotiation mode. When auto negotiation mode
    is enabled, set the advertised speeds; otherwise, set the force speed.
    Args:
        interface_name (str): Interface name
        speed (str): SONiC style interface speed. E.g, 1G=1000, 10G=10000, 100G=100000. If the speed
        is None and auto negotiation mode is enabled, it sets the advertised speeds to all supported
        speeds.
    Returns:
        boolean: True if success. Usually, the method return False only if the operation
        is not supported or failed.
    """
    return self.host.METHOD_NAME(interface_name, speed)