class_docstr: Base class for repository detection 
class_docstr_tok: ["Base","class","for","repository","detection"]
code: def _is_repo_type(self, script_path):
      try:
          with open(os.devnull, "wb") as devnull:
              return (
                  call(
                      [self.type_name, "status"],
                      stderr=devnull,
                      stdout=devnull,
                      cwd=str(script_path),
                  )
                  == 0
              )
      except CalledProcessError:
          self._get_logger().warning(
              "Can't get {} status".format(self.type_name)
          )
      except (OSError, EnvironmentError, IOError):
          # File not found or can't be executed
          pass
      return False
  
imports: import abc
  import os
  from subprocess import call, CalledProcessError
  import attr
  import six
  from pathlib2 import Path
  from ....config.defs import VCS_REPO_TYPE, VCS_DIFF, VCS_STATUS, VCS_ROOT, VCS_BRANCH, VCS_COMMIT_ID, VCS_REPOSITORY_URL
  from ....debugging import get_logger
  from .util import get_command_output
label_desc: Use image node_id 8 for calling the Detector obj's underlying member method code with example usage: obj._is_repo_type(script_path) and returns: False, unknown