class_docstr: Represents the WeiGit repo for tracking neural network weights and their versions.
  
  A WeiGit repo is like a git repo. It is a dir, in which a .wgit dir exists to keep
  track of the content.
  
  Args:
      parent_dir (Path, str):
          Parent dir in which to make or to load a .wgit dir.
          Default: "", which means CWD.
      init (bool, optional):
          - If ``True``, initializes a new WeiGit repo in the parent_dir. Initialization
            creates a `.wgit` directory within the <parent_dir>, triggers an initialization.
            of a sha1_store in the ./<parent_dir>/.wgit directory, and makes the
            ./<parent_dir>/.wgit a git repository through git initialization.
          - If ``False``, a new WeiGit repo is not initialized and the existing repo is
            wrapped, populating the `_wgit_parent` and other internal attributes.
          - Default: False
class_docstr_tok: ["Represents","the","WeiGit","repo","for","tracking","neural","network","weights","and","their","versions",".","A","WeiGit","repo","is","like","a","git","repo",".","It","is","a","dir",",","in","which","a",".wgit","dir","exists","to","keep","track","of","the","content",".","Args",":","parent_dir","(","Path",",","str",")",":","Parent","dir","in","which","to","make","or","to","load","a",".wgit","dir",".","Default",":","``","''",",","which","means","CWD",".","init","(","bool",",","optional",")",":","-","If","``","True","``",",","initializes","a","new","WeiGit","repo","in","the","parent_dir",".","Initialization","creates","a","`",".wgit","`","directory","within","the","<","parent_dir",">",",","triggers","an","initialization",".","of","a","sha1_store","in","the",".\/","<","parent_dir",">","\/.wgit","directory",",","and","makes","the",".\/","<","parent_dir",">","\/.wgit","a","git","repository","through","git","initialization",".","-","If","``","False","``",",","a","new","WeiGit","repo","is","not","initialized","and","the","existing","repo","is","wrapped",",","populating","the","`","_wgit_parent","`","and","other","internal","attributes",".","-","Default",":","False"]
docstr: Walk the directories that contain the metadata files and check the
  status of those files, whether they have been modified or not.
  
  Dict[str, bool] is a path in string and whether the file is_modified.
docstr_tok: ["Walk","the","directories","that","contain","the","metadata","files","and","check","the","status","of","those","files",",","whether","they","have","been","modified","or","not",".","Dict","[","str",",","bool","]","is","a","path","in","string","and","whether","the","file","is_modified","."]
code: def _get_metdata_files(self) -> Dict[str, bool]:
      """Walk the directories that contain the metadata files and check the
      status of those files, whether they have been modified or not.
  
      Dict[str, bool] is a path in string and whether the file is_modified.
      """
      metadata_d = dict()
      for (
          file
      ) in (
          self._dot_wgit_dir_path.iterdir()
      ):  # iterate over the .wgit directory
          # exclude all the .wgit files and directory
          if file.name not in {"sha1_store", ".git", ".gitignore"}:
              # perform a directory walk on the metadata_file directories to find the metadata files
              for path in file.rglob("*"):
                  if path.is_file():
                      rel_path = str(
                          path.relative_to(self._dot_wgit_dir_path)
                      )  # metadata path relative to .wgit dir
                      metadata_d[rel_path] = self._is_file_modified(
                          path
                      )
      return metadata_d
  
imports: import copy
  from dataclasses import dataclass
  from enum import Enum
  import json
  from pathlib import Path
  import sys
  from typing import Any, Dict, List, Optional, Union
  import torch
  from torch import Tensor
  from .pygit import PyGit
  from .sha1_store import SHA1_Store
label_desc: Use image node_id 13 for calling the Repo obj's underlying member method code with example usage: obj._get_metdata_files() and returns: metadata_d