code: def __grid_fields__(self) -> Iterator[str]:
      for field in dataclasses.fields(self):  # noqa F402
          yield field.name
  
imports: import dataclasses
  from dataclasses import dataclass, field, make_dataclass
  from pathlib import Path
  from typing import Dict, Iterator, List, NamedTuple, Optional, Tuple, Type, TypeVar, Union
  import pytorch_lightning
  import torch
  from flash.core.serve.types.base import BaseType
  from flash.core.serve.utils import download_file
  from flash.core.utilities.imports import _PYDANTIC_AVAILABLE, requires
label_desc: Use image node_id 1 for calling the DictAttrAccessBase obj's underlying member method code with example usage: obj.__grid_fields__() without return types