code: def find_root_package_dir(file_path):
      dir = os.path.dirname(file_path)
      if file_path == dir:
          return dir
      elif is_package_dir(dir):
          return find_root_package_dir(dir)
      else:
          return dir
  
imports: from __future__ import absolute_import
  import os
  import sys
  import re
  import io
  import codecs
  import shutil
  import tempfile
  from contextlib import contextmanager
label_desc: Use image node_id 10 for calling a global function with example usage: find_root_package_dir(file_path) and returns: dir, find_root_package_dir, dir