class_docstr: Dataset version `MAJOR.MINOR.PATCH`.
  
  Args:
      version_str (`str`):
          The dataset version.
      description (`str`):
          A description of what is new in this version.
      major (`str`):
      minor (`str`):
      patch (`str`):
  
  Example:
  
  ```py
  >>> VERSION = datasets.Version("1.0.0")
  ```
class_docstr_tok: ["Dataset","version","`","MAJOR.MINOR.PATCH","`",".","Args",":","version_str","(","`","str","`",")",":","The","dataset","version",".","description","(","`","str","`",")",":","A","description","of","what","is","new","in","this","version",".","major","(","`","str","`",")",":","minor","(","`","str","`",")",":","patch","(","`","str","`",")",":","Example",":","``","`","py",">",">",">","VERSION","=","datasets.Version","(","``","1.0.0","''",")","``","`"]
code: def from_dict(cls, dic):
      field_names = {f.name for f in dataclasses.fields(cls)}
      return cls(**{k: v for k, v in dic.items() if k in field_names})
  
file_path: datasets/src/datasets/utils/version.py
imports: import dataclasses
  import re
  from dataclasses import dataclass
  from functools import total_ordering
  from typing import Optional, Union
label_desc: Use image node_id 8 for calling the Version obj's underlying member method code with example usage: obj.from_dict(cls, dic) and returns: cls