code: def expand_path(path):
      
      if is_encase(path):
          return glob.glob(path[:-2] + '??') or [path]
      ext_match = re.match(r'^.*\.(\d{2,})$', path)
      if ext_match is not None:
          ext_size = len(ext_match.groups()[-1])
          return glob.glob(path[:-ext_size] + '[0-9]' * ext_size) or [path]
      else:
          return [path]
docs: Expand the given path to either an Encase image or a dd image
      i.e. if path is '/path/to/image.E01' then the result of this method will be
      /path/to/image.E*'
      and if path is '/path/to/image.001' then the result of this method will be
      '/path/to/image.[0-9][0-9]?'