class_docstr: Service that controls the underlying MongoDB database.
class_docstr_tok: ["Service","that","controls","the","underlying","MongoDB","database","."]
docstr: Returns the path to the `mongod` executable.
code: def find_mongod():
      """Returns the path to the `mongod` executable."""
      mongod = os.path.join(
          foc.FIFTYONE_DB_BIN_DIR, DatabaseService.MONGOD_EXE_NAME
      )
  
      if not os.path.isfile(mongod):
          raise ServiceExecutableNotFound("Could not find `mongod`")
  
      if not os.access(mongod, os.X_OK):
          raise PermissionError("`mongod` is not executable")
  
      return mongod
  
imports: import logging
  import os
  import subprocess
  import sys
  import psutil
  import requests
  from retrying import retry
  import eta.core.utils
  import fiftyone.constants
  import fiftyone.core.config
  import fiftyone.core.context
  import fiftyone.service.util
label_desc: Use image node_id 3 for calling the DatabaseService obj's underlying member method code with example usage: obj.find_mongod() and returns: mongod