code: def migrate_one(src, dst):
      """Migrate one item
  
      dispatches to migrate_dir/_file
      """
      log = get_logger()
      if os.path.isfile(src):
          return migrate_file(src, dst)
      elif os.path.isdir(src):
          return migrate_dir(src, dst)
      else:
          log.debug("Nothing to migrate for %s" % src)
          return False
  
file_path: catboost/contrib/python/jupyter-core/py2/jupyter_core/migrate.py
imports: from __future__ import unicode_literals
  import os
  import re
  import shutil
  from datetime import datetime
  from traitlets.config import PyFileConfigLoader, JSONFileConfigLoader
  from traitlets.log import get_logger
  from .utils import ensure_dir_exists
  from .paths import jupyter_config_dir, jupyter_data_dir
  from .application import JupyterApp
label_desc: Use image node_id 4 for calling a global function with example usage: migrate_one(src, dst) and returns: migrate_file, migrate_dir, False