code: def _test_type(self, path):
      if self.type is None:
          return True
      if self.type == "text":
          return self._test_text_file(path)
      if self.type == "binary":
          return self._test_binary_file(path)
      if self.type == "dir":
          return self._test_dir(path)
      assert False, self.type
  
imports: import fnmatch
  import glob
  import logging
  import os
  import re
  import shutil
  from guild import util
label_desc: Use image node_id 12 for calling the FileSelectRule obj's underlying member method code with example usage: obj._test_type(path) and returns: True, self, self, self