code: def mock_auth_manager(mock_sm):
      auth_manager = Mock()
      auth_manager.security_manager = mock_sm
      return auth_manager
  
file_path: airflow/tests/providers/fab/auth_manager/api/auth/backend/test_basic_auth.py
imports: from __future__ import annotations
  from unittest.mock import Mock, patch
  import pytest
  from flask import Response
  from flask_appbuilder.const import AUTH_LDAP
  from airflow.api.auth.backend.basic_auth import requires_authentication
  from airflow.www import app
label_desc: Use image node_id 3 for calling a global function with example usage: mock_auth_manager(mock_sm) and returns: auth_manager