code: def has_binary(binary):
      try:
          subprocess.check_output([binary])
      except FileNotFoundError:
          return False
      except OSError:
          pass
      return True
  
imports: import re
  import shutil
  import subprocess
  import warnings
  import pytest
  from docutils import nodes
  from sphinx.ext.mathjax import MATHJAX_URL
  from sphinx.testing.util import assert_node
label_desc: Use image node_id 1 for calling a global function with example usage: has_binary(binary) and returns: True, False