code: def run(self):
      # 1: Imports flask requirements.
      from flask import Flask, request
      from flask_cors import CORS
  
      # 2: Create a flask app
      flask_app = Flask(__name__)
      CORS(flask_app)
  
      # 3: Define the upload file endpoint
      @flask_app.post("/upload_file/")
      def upload_file():
          """Upload a file directly as form data."""
          f = request.files["file"]
          return self.upload_file(f)
  
      @flask_app.get("/")
      def list_files():
          return self.list_files(str(Path(self.base_dir).resolve()))
  
      # 5: Start the flask app while providing the `host` and `port`.
      flask_app.run(host=self.host, port=self.port, load_dotenv=False)
  
imports: import json
  import os
  import tarfile
  import uuid
  import zipfile
  from pathlib import Path
  from lightning.app import LightningWork, LightningApp
  from lightning.app.storage import Drive
  import requests
  from lightning import LightningWork
  from lightning import LightningApp, LightningFlow
  from lightning.app.runners import MultiProcessRuntime
  from lightning.app.testing import run_app_in_cloud
label_desc: Use image node_id 6 for calling the FileServer obj's underlying member method code with example usage: obj.run() and returns: self, self