code: def get_optionflags(parent):
      optionflags_str = parent.config.getini("doctest_optionflags")
      flag_lookup_table = _get_flag_lookup()
      flag_acc = 0
      for flag in optionflags_str:
          flag_acc |= flag_lookup_table[flag]
      return flag_acc
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import inspect
  import platform
  import sys
  import traceback
  import warnings
  from contextlib import contextmanager
  import pytest
  from _pytest._code.code import ExceptionInfo
  from _pytest._code.code import ReprFileLocation
  from _pytest._code.code import TerminalRepr
  from _pytest.compat import safe_getattr
  from _pytest.fixtures import FixtureRequest
  from _pytest.outcomes import Skipped
  from _pytest.warning_types import PytestWarning
label_desc: Use image node_id 8 for calling a global function with example usage: get_optionflags(parent) and returns: flag_acc