code: def _is_framework_filename(filename):
      """Returns whether a filename should be considered a part of the framework.
  
      A file is part of the framework if it does not match a pattern in
      _EXTERNAL_FILENAME_PATTERNS and it either matches a pattern in
      _FRAMEWORK_FILENAME_PATTERNS or starts with a _FRAMEWORK_PATH_PREFIXES prefix.
  
      Args:
        filename: A filename string.
  
      Returns:
        Whether the filename should be considered to be internal to the
        TensorFlow framework for the purposes of reporting errors.
      """
      for pattern in _EXTERNAL_FILENAME_PATTERNS:
          if pattern.search(filename):
              return False
      for pattern in _FRAMEWORK_FILENAME_PATTERNS:
          if pattern.search(filename):
              return True
      for prefix in _FRAMEWORK_PATH_PREFIXES:
          if filename.startswith(prefix):
              return True
      return False
  
file_path: tensorflow-upstream/tensorflow/python/framework/error_interpolation.py
imports: import collections
  import os
  import re
  import site
  import traceback
  from tensorflow.python.util import tf_stack
label_desc: Use image node_id 6 for calling a global function with example usage: _is_framework_filename(filename) and returns: False, False, True, True