docstr: Configure the commands of this LightningFlow.
  
  Returns a list of dictionaries mapping a command name to a flow method.
  
  .. code-block:: python
  
      class Flow(LightningFlow):
          def __init__(self):
              super().__init__()
              self.names = []
  
          def configure_commands(self):
              return {"my_command_name": self.my_remote_method}
  
          def my_remote_method(self, name):
              self.names.append(name)
  
  Once the app is running with the following command:
  
  .. code-block:: bash
  
      lightning run app app.py
  
  .. code-block:: bash
  
      lightning my_command_name --args name=my_own_name
docstr_tok: ["Configure","the","commands","of","this","LightningFlow",".","Returns","a","list","of","dictionaries","mapping","a","command","name","to","a","flow","method",".","..","code-block",":",":","python","class","Flow","(","LightningFlow",")",":","def","__init__","(","self",")",":","super","(",")",".__init__","(",")","self.names","=","[","]","def","configure_commands","(","self",")",":","return","{","``","my_command_name","''",":","self.my_remote_method","}","def","my_remote_method","(","self",",","name",")",":","self.names.append","(","name",")","Once","the","app","is","running","with","the","following","command",":","..","code-block",":",":","bash","lightning","run","app","app.py","..","code-block",":",":","bash","lightning","my_command_name","--","args","name=my_own_name"]
code: def configure_commands(self) -> None:
      """Configure the commands of this LightningFlow.
  
      Returns a list of dictionaries mapping a command name to a flow method.
  
      .. code-block:: python
  
          class Flow(LightningFlow):
              def __init__(self):
                  super().__init__()
                  self.names = []
  
              def configure_commands(self):
                  return {"my_command_name": self.my_remote_method}
  
              def my_remote_method(self, name):
                  self.names.append(name)
  
      Once the app is running with the following command:
  
      .. code-block:: bash
  
          lightning run app app.py
  
      .. code-block:: bash
  
          lightning my_command_name --args name=my_own_name
  
      """
      raise NotImplementedError
  
imports: import inspect
  import warnings
  from copy import deepcopy
  from datetime import datetime
  from types import FrameType
  from typing import TYPE_CHECKING, Any, Dict, Generator, Iterable, List, Optional, Tuple, Union, cast
  from deepdiff import DeepHash
  from lightning.app.core.work import LightningWork
  from lightning.app.frontend import Frontend
  from lightning.app.storage.drive import Drive, _maybe_create_drive
  from lightning.app.storage.path import Path
  from lightning.app.utilities.app_helpers import _is_json_serializable, _LightningAppRef, _set_child_name, is_overridden
  from lightning.app.utilities.component import _sanitize_state
  from lightning.app.utilities.exceptions import ExitAppException, LightningFlowException
  from lightning.app.utilities.introspection import _is_init_context, _is_run_context
  from lightning.app.utilities.packaging.cloud_compute import CloudCompute, _maybe_create_cloud_compute
label_desc: Use image node_id 27 for calling the LightningFlow obj's underlying member method code with example usage: obj.configure_commands() without return types