docstr: **Experimental**
  
  Returns the head line shown with longrepr output for this report, more commonly during
  traceback representation during failures::
  
      ________ Test.foo ________
  
  
  In the example above, the head_line is "Test.foo".
  
  .. note::
  
      This function is considered **experimental**, so beware that it is subject to changes
      even in patch releases.
docstr_tok: ["*","*","Experimental","*","*","Returns","the","head","line","shown","with","longrepr","output","for","this","report",",","more","commonly","during","traceback","representation","during","failures",":",":","________","Test.foo","________","In","the","example","above",",","the","head_line","is","``","Test.foo","''",".","..","note",":",":","This","function","is","considered","*","*","experimental","*","*",",","so","beware","that","it","is","subject","to","changes","even","in","patch","releases","."]
code: def head_line(self):
      """
      **Experimental**
  
      Returns the head line shown with longrepr output for this report, more commonly during
      traceback representation during failures::
  
          ________ Test.foo ________
  
  
      In the example above, the head_line is "Test.foo".
  
      .. note::
  
          This function is considered **experimental**, so beware that it is subject to changes
          even in patch releases.
      """
      if self.location is not None:
          fspath, lineno, domain = self.location
          return domain
  
imports: from pprint import pprint
  import py
  import six
  from _pytest._code.code import ExceptionInfo
  from _pytest._code.code import ReprEntry
  from _pytest._code.code import ReprEntryNative
  from _pytest._code.code import ReprExceptionInfo
  from _pytest._code.code import ReprFileLocation
  from _pytest._code.code import ReprFuncArgs
  from _pytest._code.code import ReprLocals
  from _pytest._code.code import ReprTraceback
  from _pytest._code.code import TerminalRepr
  from _pytest.outcomes import skip
  from _pytest.pathlib import Path
label_desc: Use image node_id 10 for calling the BaseReport obj's underlying member method code with example usage: obj.head_line() and returns: domain