code: def parse_disabled_manifest(manifest_content):
      comments_re = re.compile("#.*$")
      disabled_tests = []
      disabled_method_types = []
      for l in manifest_content.splitlines():
          stripped = comments_re.sub("", l).strip()
          if not stripped:
              continue
          entry = stripped.split(" ")
          if len(entry) == 1:
              disabled_tests.append(entry[0])
          elif len(entry) == 2:
              disabled_method_types.append(
                  (entry[0], entry[1].strip().split(","))
              )
          else:
              raise ValueError("Bad entry in manifest file.")
  
      disabled_regex = "|".join(disabled_tests)
      method_types_filter = {}
      for method, types in disabled_method_types:
          method_types_filter[method] = set(
              [
                  dtypes.as_dtype(
                      types_pb2.DataType.Value(name)
                  ).as_numpy_dtype
                  for name in types
              ]
          )
      return disabled_regex, method_types_filter
  
imports: from collections.abc import Iterator
  import contextlib
  import os
  import random
  import re
  import numpy
  from tensorflow.core.framework import types_pb2
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.core.protobuf import rewriter_config_pb2
  from tensorflow.python.client import session
  from tensorflow.python.compiler.xla import jit
  from tensorflow.python.eager import context
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import flags
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 1 for calling a global function with example usage: parse_disabled_manifest(manifest_content) and returns: disabled_regex,  method_types_filter