code: def _get_destination_dir(self, kernel_name, user=False, prefix=None):
      if user:
          return os.path.join(self.user_kernel_dir, kernel_name)
      elif prefix:
          return os.path.join(
              os.path.abspath(prefix),
              "share",
              "jupyter",
              "kernels",
              kernel_name,
          )
      else:
          return os.path.join(
              SYSTEM_JUPYTER_PATH[0], "kernels", kernel_name
          )
  
imports: import errno
  import io
  import json
  import os
  import re
  import shutil
  import warnings
  from ipython_genutils.py3compat import PY3
  from traitlets import HasTraits, List, Unicode, Dict, Set, Bool, Type, CaselessStrEnum
  from traitlets.config import LoggingConfigurable
  from jupyter_core.paths import jupyter_data_dir, jupyter_path, SYSTEM_JUPYTER_PATH
label_desc: Use image node_id 10 for calling the KernelSpecManager obj's underlying member method code with example usage: obj._get_destination_dir(kernel_name, user, prefix) and returns: os, os, os