code: def download_file(self, key, local_file_path, bucket=None):
      self.logger.debug(
          "Downloading file at key {} to local path {}...".format(
              key, local_file_path
          )
      )
      try:
          storageobj = self.app.storage().child(key)
  
          if self.auth:
              # pyrebase download does not work with files that require
              # authentication...
              # Need to rewrite
              # storageobj.download(local_file_path, self.auth.get_token())
  
              headers = {
                  "Authorization": "Firebase " + self.auth.get_token()
              }
              escaped_key = key.replace("/", "%2f")
              url = "{}/o/{}?alt=media".format(
                  self.app.storage().storage_bucket, escaped_key
              )
  
              response = self.app.requests.get(
                  url,
                  stream=True,
                  headers=headers,
                  verify=certifi.old_where(),
              )
              if response.status_code == 200:
                  with open(local_file_path, "wb") as f:
                      for chunk in response:
                          f.write(chunk)
              else:
                  raise ValueError(
                      "Response error with code {}".format(
                          response.status_code
                      )
                  )
          else:
              storageobj.download(local_file_path)
          self.logger.debug("Done")
      except Exception as err:
          self.logger.warn(
              (
                  "Downloading file {} to local path {} from studio.storage "
                  + "raised an exception: {}"
              ).format(key, local_file_path, err)
          )
  
imports: import time
  import calendar
  import certifi
  import json
  from studio import pyrebase
  from studio.util import logs
  from studio.auth import get_auth
  from studio.storage.storage_setup import get_storage_verbose_level
  from studio.storage.storage_type import StorageType
  from studio.storage.storage_handler import StorageHandler
label_desc: Use image node_id 3 for calling the FirebaseStorageHandler obj's underlying member method code with example usage: obj.download_file(key, local_file_path, bucket) without return types