code: def mock_local_file(content):
      with mock.patch(
          "airflow.secrets.local_filesystem.open",
          mock.mock_open(read_data=content),
      ) as file_mock, mock.patch(
          "airflow.secrets.local_filesystem.os.path.exists",
          return_value=True,
      ):
          yield file_mock
  
imports: from __future__ import annotations
  import json
  import os
  import re
  from contextlib import contextmanager
  from unittest import mock
  import pytest
  from airflow.configuration import ensure_secrets_loaded
  from airflow.exceptions import AirflowException, AirflowFileParseException, ConnectionNotUnique
  from airflow.models import Variable
  from airflow.secrets import local_filesystem
  from airflow.secrets.local_filesystem import LocalFilesystemBackend
  from tests.test_utils.config import conf_vars
label_desc: Use image node_id 1 for calling a global function with example usage: mock_local_file(content) without return types