code: def getfslineno(obj):
      # xxx let decorators etc specify a sane ordering
      obj = get_real_func(obj)
      if hasattr(obj, "place_as"):
          obj = obj.place_as
      fslineno = _pytest._code.getfslineno(obj)
      assert isinstance(fslineno[1], int), obj
      return fslineno
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import codecs
  import functools
  import inspect
  import re
  import sys
  from contextlib import contextmanager
  import attr
  import py
  import six
  from six import text_type
  import _pytest
  from _pytest._io.saferepr import saferepr
  from _pytest.outcomes import fail
  from _pytest.outcomes import TEST_OUTCOME
label_desc: Use image node_id 12 for calling a global function with example usage: getfslineno(obj) and returns: fslineno