docstr: Every public attribute is part of the state by default and all protected (prefixed by '_') or private
  (prefixed by '__') attributes are not.
  
  Exceptions are listed in the `_INTERNAL_STATE_VARS` class variable.
docstr_tok: ["Every","public","attribute","is","part","of","the","state","by","default","and","all","protected","(","prefixed","by","'","_","'",")","or","private","(","prefixed","by","'__","'",")","attributes","are","not",".","Exceptions","are","listed","in","the","`","_INTERNAL_STATE_VARS","`","class","variable","."]
code: def _is_state_attribute(name: str) -> bool:
      """Every public attribute is part of the state by default and all protected (prefixed by '_') or private
      (prefixed by '__') attributes are not.
  
      Exceptions are listed in the `_INTERNAL_STATE_VARS` class variable.
  
      """
      return (
          name in LightningFlow._INTERNAL_STATE_VARS
          or not name.startswith("_")
      )
  
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 20 for calling the LightningFlow obj's underlying member method code with example usage: obj._is_state_attribute(name) and returns: unknown