code: def get_label_idx(self, label):
          
          for i in range(len(self)):
              if self.mem[i].is_label and self.mem[i].inst == label:
                  return i
  
          return None
docs: Returns the index of a label.
          Returns None if not found.