code: def skip_magic(code_line, magic_list):
      """Checks if the cell has magic, that is not Python-based.
  
      Args:
          code_line: A line of Python code
          magic_list: A list of jupyter "magic" exceptions
  
      Returns:
        If the line jupyter "magic" line, not Python line
  
       >>> skip_magic('!ls -laF', ['%', '!', '?'])
      True
      """
  
      for magic in magic_list:
          if code_line.startswith(magic):
              return True
  
      return False
  
file_path: tensorflow/tensorflow/tools/compatibility/ipynb.py
imports: import collections
  import copy
  import json
  import re
  import shutil
  import tempfile
label_desc: Use image node_id 3 for calling a global function with example usage: skip_magic(code_line, magic_list) and returns: False, True