docs: def _convert_to_storage_entity_with_encryption_metadata(
              self, options, store_raw_metadata, sa, entity, vio, is_file,
              container, dir, file_snapshot):
          # type: (SourcePath, StorageCredentials, any, bool, StorageAccount,
          #        any, blobxfer.models.metadata.VectoredStripe, bool, str,
          #        str) -> StorageEntity
          """Convert entity into StorageEntity with encryption metadata if avail
          :param SourcePath self: this
          :param StorageCredentials creds: storage creds
          :param object options: download or synccopy options
          :param bool store_raw_metadata: store raw metadata
          :param StorageAccount sa: storage account
          :param object entity: Storage File or Blob object
          :param blobxfer.models.metadata.VectoredStripe vio: Vectored stripe
          :param bool is_file: is a file object
          :param str container: container
          :param str dir: Azure File directory structure
          :rtype: StorageEntity
          :return: Azure storage entity object
          """
          if (not store_raw_metadata and
                  blobxfer.models.crypto.EncryptionMetadata.
                  encryption_metadata_exists(entity.metadata)):
              ed = blobxfer.models.crypto.EncryptionMetadata()
              ed.convert_from_json(
                  entity.metadata, entity.name, options.rsa_private_key)
          else:
              ed = None
          ase = blobxfer.models.azure.StorageEntity(container, ed)
          if is_file:
              ase.populate_from_file(
                  sa, entity, dir, vio=vio,
                  store_raw_metadata=store_raw_metadata, snapshot=file_snapshot)
          else:
              ase.populate_from_blob(
                  sa, entity, vio=vio, store_raw_metadata=store_raw_metadata)
          return ase