code: def _FilterGoldenFilesByPrefix(golden_file_list, package_prefixes):
      filtered_file_list = []
      filtered_package_prefixes = [
          "tensorflow.%s." % p for p in package_prefixes
      ]
      for f in golden_file_list:
          if any(
              f.rsplit("/")[-1].startswith(pre)
              for pre in filtered_package_prefixes
          ):
              continue
          filtered_file_list.append(f)
      return filtered_file_list
  
imports: import argparse
  import os
  import re
  import sys
  import tensorflow
  from google.protobuf import message
  from google.protobuf import text_format
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.platform import resource_loader
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.tools.api.lib import api_objects_pb2
  from tensorflow.tools.api.lib import python_object_to_proto_visitor
  from tensorflow.tools.common import public_api
  from tensorflow.tools.common import traverse
label_desc: Use image node_id 8 for calling a global function with example usage: _FilterGoldenFilesByPrefix(golden_file_list, package_prefixes) and returns: filtered_file_list