def METHOD_NAME(self, ctx):
    self.basic_check("advertised-types", ["Ethernet0", "CR4,KR4"], ctx)
    self.basic_check("advertised-types", ["Ethernet0", "all"], ctx)
    self.basic_check("advertised-types", ["Invalid", "CR4,KR4"], ctx, operator.ne)
    result = self.basic_check("advertised-types", ["Ethernet0", "CR4,Invalid"], ctx, operator.ne)
    assert 'Invalid interface type specified' in result.output
    assert 'Valid interface types:' in result.output
    result = self.basic_check("advertised-types", ["Ethernet0", "CR4,CR4"], ctx, operator.ne)
    assert 'Invalid interface type specified' in result.output
    assert 'duplicate' in result.output
    self.basic_check("advertised-types", ["Ethernet0", ""], ctx, operator.ne)
    result = self.basic_check("advertised-types", ["Ethernet16", "Invalid"], ctx, operator.ne)
    assert "Setting RJ45 ports' advertised types is not supported" in result.output
    # Setting advertised types on a port channel is not supported
    result = self.basic_check("advertised-types", ["PortChannel0001", "CR4,KR4"], ctx, operator.ne)
    assert 'Invalid port PortChannel0001' in result.output