class_docstr: base class for Collector and Item the test collection tree.
  Collector subclasses have children, Items are terminal nodes.
docstr: return the first marker matching the name, from closest (for example function) to farther level (for example
  module level).
  
  :param default: fallback return value of no marker was found
  :param name: name to filter by
docstr_tok: ["return","the","first","marker","matching","the","name",",","from","closest","(","for","example","function",")","to","farther","level","(","for","example","module","level",")",".",":","param","default",":","fallback","return","value","of","no","marker","was","found",":","param","name",":","name","to","filter","by"]
code: def get_closest_marker(self, name, default=None):
      """return the first marker matching the name, from closest (for example function) to farther level (for example
      module level).
  
      :param default: fallback return value of no marker was found
      :param name: name to filter by
      """
      return next(self.iter_markers(name=name), default)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import warnings
  import py
  import six
  import _pytest._code
  from _pytest.compat import getfslineno
  from _pytest.mark.structures import NodeKeywords
  from _pytest.outcomes import fail
label_desc: Use image node_id 13 for calling the Node obj's underlying member method code with example usage: obj.get_closest_marker(name, default) and returns: next