code: def get_code_block_line(mod_file, obj_line, lineno_in_docstring):
      with mod_file.open() as f:
          lines = f.readlines()[obj_line:]
          for offset, line in enumerate(lines):
              if line.lstrip().startswith('"""'):
                  extra_offset = 0
                  while (
                      re.search(
                          r"[^\"\s]", lines[offset + extra_offset]
                      )
                      is None
                  ):
                      extra_offset += 1
                  return (
                      obj_line
                      + offset
                      + extra_offset
                      + lineno_in_docstring
                  )
  
file_path: mlflow/docs/source/testcode_block.py
imports: import textwrap
  import importlib
  import inspect
  import functools
  import re
  from pathlib import Path
  from sphinx.directives.code import CodeBlock
label_desc: Use image node_id 2 for calling a global function with example usage: get_code_block_line(mod_file, obj_line, lineno_in_docstring) and returns: unknown