code: def get_option_ini(config, *names):
      for name in names:
          ret = config.getoption(
              name
          )  # 'default' arg won't work as expected
          if ret is None:
              ret = config.getini(name)
          if ret:
              return ret
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  import re
  from contextlib import contextmanager
  import py
  import six
  import pytest
  from _pytest.compat import dummy_context_manager
  from _pytest.config import create_terminal_writer
  from _pytest.pathlib import Path
label_desc: Use image node_id 2 for calling a global function with example usage: get_option_ini(config) and returns: ret