code: def test_finalize_options(self):
      pkg_dir, dist = self.create_dist()
      cmd = build_clib(dist)
  
      cmd.include_dirs = "one-dir"
      cmd.finalize_options()
      self.assertEqual(cmd.include_dirs, ["one-dir"])
  
      cmd.include_dirs = None
      cmd.finalize_options()
      self.assertEqual(cmd.include_dirs, [])
  
      cmd.distribution.libraries = "WONTWORK"
      self.assertRaises(DistutilsSetupError, cmd.finalize_options)
  
file_path: catboost/contrib/tools/python/src/Lib/distutils/tests/test_build_clib.py
imports: import unittest
  import os
  import sys
  from test.test_support import run_unittest
  from distutils.command.build_clib import build_clib
  from distutils.errors import DistutilsSetupError
  from distutils.tests import support
  from distutils.spawn import find_executable
label_desc: Use image node_id 4 for calling the BuildCLibTestCase obj's underlying member method code with example usage: obj.test_finalize_options() without return types