code: def canonical_path(config):
      module = config.__module__
      if "__COMPONENT__" in vars(config):
          module = config.__COMPONENT__.__module__
      return f"{module}.{config.__name__}"
  
imports: import collections
  import contextlib
  import itertools
  import json
  import os
  import typing
  from pytext.config import ConfigBase, ExportConfig, PyTextConfig
  from pytext.config.component import Registry
  from pytext.config.serialize import config_to_json
  from pytext.utils.file_io import PathManager
  from sphinx.ext.napoleon import GoogleDocstring
  from sphinx.pycode import ModuleAnalyzer
label_desc: Use image node_id 1 for calling a global function with example usage: canonical_path(config) and returns: module, str, config