class_docstr: Simple key structure for the Statistics dictionary.
  
  To make things clearer, easier to read, and more understandable, we use a
  namedtuple here for all Keys in the underlying dictionary for the
  Statistics object.
class_docstr_tok: ["Simple","key","structure","for","the","Statistics","dictionary",".","To","make","things","clearer",",","easier","to","read",",","and","more","understandable",",","we","use","a","namedtuple","here","for","all","Keys","in","the","underlying","dictionary","for","the","Statistics","object","."]
docstr: Create a Key from :class:`flake8.violation.Violation`.
docstr_tok: ["Create","a","Key","from",":","class",":","`","flake8.violation.Violation","`","."]
code: def create_from(cls, error: Violation) -> Key:
      """Create a Key from :class:`flake8.violation.Violation`."""
      return cls(filename=error.filename, code=error.code)
  
file_path: flake8/src/flake8/statistics.py
imports: from __future__ import annotations
  from typing import Generator
  from typing import NamedTuple
  from flake8.violation import Violation
label_desc: Use image node_id 1 for calling the Key obj's underlying member method code with example usage: obj.create_from(cls, error) and returns: cls