code: def magic_run_completer(self, event):
      """Complete files that end in .py or .ipy or .ipynb for the %run command."""
      comps = arg_split(event.line, strict=False)
      # relpath should be the current token that we need to complete.
      if (len(comps) > 1) and (not event.line.endswith(" ")):
          relpath = comps[-1].strip("'\"")
      else:
          relpath = ""
  
      # print("\nev=", event)  # dbg
      # print("rp=", relpath)  # dbg
      # print('comps=', comps)  # dbg
  
      lglob = glob.glob
      isdir = os.path.isdir
      relpath, tilde_expand, tilde_val = expand_user(relpath)
  
      # Find if the user has already typed the first filename, after which we
      # should complete on all files, since after the first one other files may
      # be arguments to the input script.
  
      if any(magic_run_re.match(c) for c in comps):
          matches = [
              f.replace("\\", "/") + ("/" if isdir(f) else "")
              for f in lglob(relpath + "*")
          ]
      else:
          dirs = [
              f.replace("\\", "/") + "/"
              for f in lglob(relpath + "*")
              if isdir(f)
          ]
          pys = [
              f.replace("\\", "/")
              for f in lglob(relpath + "*.py")
              + lglob(relpath + "*.ipy")
              + lglob(relpath + "*.ipynb")
              + lglob(relpath + "*.pyw")
          ]
  
          matches = dirs + pys
  
      # print('run comp:', dirs+pys) # dbg
      return [
          compress_user(p, tilde_expand, tilde_val) for p in matches
      ]
  
imports: from __future__ import print_function
  import glob
  import inspect
  import itertools
  import os
  import re
  import sys
  from time import time
  from zipimport import zipimporter
  from IPython.core.completer import expand_user, compress_user
  from IPython.core.error import TryNext
  from IPython.utils._process_common import arg_split
  from IPython.utils.py3compat import string_types
  from IPython import get_ipython
  from __res import importer
label_desc: Use image node_id 11 for calling a global function with example usage: magic_run_completer(event) and returns: unknown