code: def _get_parser_for_file(filename):
      for reader, exts in six.iteritems(_REGION_FILE_READERS):
          if any(filename.lower().endswith(ext) for ext in exts):
              return reader
      return None
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import re
  from typing import Dict, Iterable, Optional, Sequence
  from absl import logging
  from etils import epath
  import intervaltree
  import six
  from third_party.nucleus.io import bed
  from third_party.nucleus.protos import position_pb2
  from third_party.nucleus.protos import range_pb2
  from third_party.nucleus.protos import reference_pb2
  from third_party.nucleus.protos import variants_pb2
label_desc: Use image node_id 8 for calling a global function with example usage: _get_parser_for_file(filename) and returns: None, reader