code: def ftp_mock():
      return MagicMock(autospec=FTP)
  
imports: import ftplib
  import posixpath
  from ftplib import FTP
  from unittest.mock import MagicMock
  import pytest
  from mlflow.store.artifact.artifact_repository_registry import get_artifact_repository
  from mlflow.store.artifact.ftp_artifact_repo import FTPArtifactRepository
label_desc: Use image node_id 1 for calling a global function with example usage: ftp_mock() and returns: MagicMock