code: def get_overlap_score(candidate, target):
      """Takes a candidate word and a target word and returns the overlap
      score between the two.
  
      Parameters
      ----------
      candidate : str
          Candidate word whose overlap has to be detected.
      target : str
          Target word against which the overlap will be detected
  
      Returns
      -------
      float
          Overlap score betwen candidate and the target.
  
      """
      if len(candidate) < len(target):
          temp = candidate
          candidate = target
          target = temp
      overlap = 0.0
      while len(target) >= 2:
          if target in candidate:
              overlap = len(target)
              return overlap * 1.0 / len(candidate)
          else:
              target = target[:-1]
      return 0.0
  
imports: import collections
  import gc
  import logging
  import math
  import os
  import sys
  import time
  import warnings
  from bisect import bisect
  from typing import Any, Callable, Dict
  import torch
  from mmf.utils.distributed import get_rank, get_world_size, is_xla
  from mmf.utils.file_io import PathManager
  from packaging import version
  from torch import nn, Tensor
label_desc: Use image node_id 10 for calling a global function with example usage: get_overlap_score(candidate, target) and returns: int, unknown