def METHOD_NAME(file_path):
  """Check test directory has a __init__.py file. Otherwise, the test does not
  execute at all."""
  if not file_path.endswith(_PY_TEST_SUFFIX):
    return
  test_directory = os.path.dirname(file_path)
  if _PY_INIT_FILENAME not in os.listdir(test_directory):
    _error(f'Failed: Missing {_PY_INIT_FILENAME} file in test '
           f'directory {test_directory}.')