code: def check_program(self, name):
          
          if not check_program(name):
              raise management.CommandError(
                  "The program \"{name:s}\" is not available in the shell. "
                  "Please ensure that \"{name:s}\" is installed and reachable "
                  "through your PATH environment variable.".format(
                      name=name))
docs: Checks whether a program is available on the shell PATH.