code: def test_gen_lib_options(self):
      compiler = FakeCompiler()
      libdirs = ["lib1", "lib2"]
      runlibdirs = ["runlib1"]
      libs = [os.path.join("dir", "name"), "name2"]
  
      opts = gen_lib_options(compiler, libdirs, runlibdirs, libs)
      wanted = [
          "-Llib1",
          "-Llib2",
          "-cool",
          "-Rrunlib1",
          "found",
          "-lname2",
      ]
      self.assertEqual(opts, wanted)
  
imports: import os
  import unittest
  from test.test_support import captured_stdout
  from distutils.ccompiler import gen_lib_options, CCompiler, get_default_compiler
  from distutils.sysconfig import customize_compiler
  from distutils import debug
  from distutils.tests import support
label_desc: Use image node_id 2 for calling the CCompilerTestCase obj's underlying member method code with example usage: obj.test_gen_lib_options() without return types