class_docstr: Interacts with Azure FileShare Storage.
  
  :param azure_fileshare_conn_id: Reference to the
      :ref:`Azure FileShare connection id<howto/connection:azure_fileshare>`
      of an Azure account of which file share should be used.
class_docstr_tok: ["Interacts","with","Azure","FileShare","Storage",".",":","param","azure_fileshare_conn_id",":","Reference","to","the",":","ref",":","`","Azure","FileShare","connection","id","<","howto\/connection",":","azure_fileshare",">","`","of","an","Azure","account","of","which","file","share","should","be","used","."]
docstr: Test Azure FileShare connection.
docstr_tok: ["Test","Azure","FileShare","connection","."]
code: def test_connection(self):
      """Test Azure FileShare connection."""
      success = (True, "Successfully connected to Azure File Share.")
  
      try:
          # Attempt to retrieve file share information
          next(iter(self.share_service_client.list_shares()))
          return success
      except StopIteration:
          # If the iterator returned is empty it should still be considered a successful connection since
          # it's possible to create a storage account without any file share and none could
          # legitimately exist yet.
          return success
      except Exception as e:
          return False, str(e)
  
imports: from __future__ import annotations
  from typing import IO, Any
  from azure.storage.fileshare import FileProperties, ShareDirectoryClient, ShareFileClient, ShareServiceClient
  from airflow.hooks.base import BaseHook
  from airflow.providers.microsoft.azure.utils import add_managed_identity_connection_widgets, get_sync_default_azure_credential
label_desc: Use image node_id 20 for calling the AzureFileShareHook obj's underlying member method code with example usage: obj.test_connection() and returns: success, success, False,  str