code: def get_fields(data_class: Type[T]) -> List[Field]:
      fields = getattr(data_class, _FIELDS)
      return [
          f
          for f in fields.values()
          if f._field_type is _FIELD or f._field_type is _FIELD_INITVAR
      ]
  
file_path: ray/python/ray/_private/thirdparty/dacite/dataclasses.py
imports: from dataclasses import Field, MISSING, _FIELDS, _FIELD, _FIELD_INITVAR
  from typing import Type, Any, TypeVar, List
  from .data import Data
  from .types import is_optional
label_desc: Use image node_id 3 for calling a global function with example usage: get_fields(data_class) and returns: unknown