code: def _maybe_create_drive(
      component_name: str, state: Dict
  ) -> Union[Dict, Drive]:
      if state.get("type") == Drive.__IDENTIFIER__:
          drive = Drive.from_dict(state)
          drive.component_name = component_name
          return drive
      return state
  
imports: import os
  import pathlib
  import shutil
  import sys
  from copy import deepcopy
  from time import sleep, time
  from typing import Dict, List, Optional, Union
  from lightning.app.storage.path import LocalFileSystem, _filesystem, _shared_storage_path
  from lightning.app.utilities.component import _is_flow_context
label_desc: Use image node_id 1 for calling a global function with example usage: _maybe_create_drive(component_name, state) and returns: state, drive