class_docstr: This class provides functionality to store and load activation vectors
  generated for pre-defined neural network layers.
  It also provides functionality to check if activation vectors already
  exist in the manifold and other auxiliary functions.
  
  This class also defines a torch `Dataset`, representing Activation Vectors,
  which enables lazy access to activation vectors and layer stored in the manifold.
class_docstr_tok: ["This","class","provides","functionality","to","store","and","load","activation","vectors","generated","for","pre-defined","neural","network","layers",".","It","also","provides","functionality","to","check","if","activation","vectors","already","exist","in","the","manifold","and","other","auxiliary","functions",".","This","class","also","defines","a","torch","`","Dataset","`",",","representing","Activation","Vectors",",","which","enables","lazy","access","to","activation","vectors","and","layer","stored","in","the","manifold","."]
docstr: Utility for sorting files based on natural sorting instead of the default
  lexigraphical sort.
docstr_tok: ["Utility","for","sorting","files","based","on","natural","sorting","instead","of","the","default","lexigraphical","sort","."]
code: def sort_files(files: List[str]) -> List[str]:
      r"""
      Utility for sorting files based on natural sorting instead of the default
      lexigraphical sort.
      """
  
      def split_alphanum(s):
          r"""
          Splits string into a list of strings and numbers
              "z23a" -> ["z", 23, "a"]
          """
  
          return [
              int(x) if x.isdigit() else x
              for x in re.split("([0-9]+)", s)
          ]
  
      return sorted(files, key=split_alphanum)
  
imports: import glob
  import os
  import re
  import warnings
  from typing import Any, List, Optional, Tuple, Union
  import captum._utils.common
  import torch
  from captum.attr import LayerActivation
  from torch import Tensor
  from torch.nn import Module
  from torch.utils.data import DataLoader, Dataset
label_desc: Use image node_id 12 for calling the AV obj's underlying member method code with example usage: obj.sort_files(files) and returns: sorted, unknown