code: def test_install_kernel_spec(self):
      self.ksm.install_kernel_spec(
          self.installable_kernel, kernel_name="tstinstalled", user=True
      )
      self.assertIn("tstinstalled", self.ksm.find_kernel_specs())
  
      # install again works
      self.ksm.install_kernel_spec(
          self.installable_kernel, kernel_name="tstinstalled", user=True
      )
  
imports: import copy
  import json
  import os
  import sys
  import tempfile
  import unittest
  from io import StringIO
  from logging import StreamHandler
  from os.path import join
  from subprocess import PIPE, STDOUT, Popen
  from tempfile import TemporaryDirectory
  import pytest
  from jupyter_core import paths
  from jupyter_client import kernelspec
  from .utils import install_kernel, sample_kernel_json
label_desc: Use image node_id 8 for calling the KernelSpecTests obj's underlying member method code with example usage: obj.test_install_kernel_spec() without return types