parameters: ()
docstring: Returns call location given level up from current call.
docstring_summary: Returns call location given level up from current call.
docstring_tokens: Returns call location given level up from current call .
function: def _call_location():
    """Returns call location given level up from current call."""
    frame = tf_inspect.currentframe()
    if frame:
      # CPython internals are available, use them for performance.
      # walk back two frames to get to deprecated function caller.
      first_frame = frame.f_back
      second_frame = first_frame.f_back
      frame = second_frame if second_frame else first_frame
      return '%s:%d' % (frame.f_code.co_filename, frame.f_lineno)
    else:
      # Slow fallback path
      stack = tf_inspect.stack(0)  # 0 avoids generating unused context
      entry = stack[2]
      return '%s:%d' % (entry[1], entry[2])
function_tokens: def _call_location ( ) : frame = tf_inspect . currentframe ( ) if frame : # CPython internals are available, use them for performance. # walk back two frames to get to deprecated function caller. first_frame = frame . f_back second_frame = first_frame . f_back frame = second_frame if second_frame else first_frame return '%s:%d' % ( frame . f_code . co_filename , frame . f_lineno ) else : # Slow fallback path stack = tf_inspect . stack ( 0 ) # 0 avoids generating unused context entry = stack [ 2 ] return '%s:%d' % ( entry [ 1 ] , entry [ 2 ] )