code: def get_unique_lines(text_hashes):
      """Get the unique lines out of a list of text-hashes
  
      Args:
          text_hashes (list): A list of (hashes of) strings
  
      Returns:
          unique_indices (List): List (of the same length as text_hashes) indicating, for each
                                 element of text_hash, the index of the corresponding entry in
                                 unique_text_hashes
                                 (i.e. "Which unique text-hash does this correspond to?")
          unique_text_hashes (List): List of unique elements of text_hashes
      """
      unique_text_hashes = []
      unique_indices = []
      unique_lookup = {}
      for text_hash in text_hashes:
          if text_hash not in unique_lookup:
              unique_lookup[text_hash] = len(unique_lookup)
              unique_text_hashes.append(text_hash)
          unique_indices.append(unique_lookup[text_hash])
      return unique_indices, unique_text_hashes
  
imports: import hashlib
  import numpy
  import torch
  from dataclasses import dataclass
  from typing import List
  from jiant.tasks.core import BaseExample, BaseTokenizedExample, BaseDataRow, BatchMixin, Task, TaskTypes
  from jiant.tasks.lib.templates.shared import construct_single_input_tokens_and_segment_ids, create_input_set_from_tokens_and_segments
  from jiant.utils.python.io import read_file, read_file_lines
label_desc: Use image node_id 12 for calling a global function with example usage: get_unique_lines(text_hashes) and returns: unique_indices,  unique_text_hashes