'get a marker object from this node or None if
the node doesn\'t have a marker with that name.'

def get_marker(self, name):

    val = self.keywords.get(name, None)
    if (val is not None):
        from _pytest.mark import MarkInfo, MarkDecorator
        if isinstance(val, (MarkDecorator, MarkInfo)):
            return val
