input: Write a python function to get a line of the index file, containing the inverted list of the word provided. If inexistent, returns an empty list.
  assert DiskAccessControl("test_index.txt").getIndexLine("example") == []
  assert DiskAccessControl("test_index.txt", onMemInd={"example": "0"}).getIndexLine("example") == []
  assert DiskAccessControl("test_index.txt", onMemInd={"example": "0"}, mods={"0": [(0, 1, [1])]}).getIndexLine("example") == [(0, 1, [1])]
output: class DiskAccessControl:
      def __init__(self, index_file, onMemInd=None, mods=None):
          self.index_file = index_file
          self.onMemInd = onMemInd if onMemInd is not None else {}
          self.mods = mods if mods is not None else {}
  
      def getIndexLine(self, word):
          # Check if the word is in the onMemInd dictionary
          if word in self.onMemInd:
              index = self.onMemInd[word]
              # Check if there are modifications for this index
              if index in self.mods:
                  return self.mods[index]
          return []