code: def expand_resource_path(path):
      directory = dirname(sys.modules["sumy"].__file__)
      directory = abspath(directory)
      return join(directory, to_string("data"), to_string(path))
  
imports: from __future__ import absolute_import
  from __future__ import division, print_function, unicode_literals
  import sys
  import requests
  import pkgutil
  from functools import wraps
  from contextlib import closing
  from os.path import dirname, abspath, join
  from ._compat import to_string, to_unicode, string_types
  from pycountry import languages
label_desc: Use image node_id 4 for calling a global function with example usage: expand_resource_path(path) and returns: join