class_docstr: Structure to discover and store `Dataset` dependencies.
  
  Used primarily by the `Scene` object to organize dependency finding.
  Dependencies are stored used a series of `Node` objects which this
  class is a subclass of.
class_docstr_tok: ["Structure","to","discover","and","store","`","Dataset","`","dependencies",".","Used","primarily","by","the","`","Scene","`","object","to","organize","dependency","finding",".","Dependencies","are","stored","used","a","series","of","`","Node","`","objects","which","this","class","is","a","subclass","of","."]
code: def _get_unique_id_from_sorted_ids(sorted_ids, distances):
      if distances[0] != np.inf:
          if distances[0] != distances[1]:
              result = sorted_ids[0]
          else:
              raise TooManyResults
      else:
          raise MissingDependencies
      return result
  
imports: from __future__ import annotations
  from typing import Container, Iterable, Optional
  import numpy
  from satpy import DataID, DatasetDict
  from satpy.dataset import ModifierTuple, create_filtered_query
  from satpy.dataset.data_dict import TooManyResults, get_key
  from satpy.node import EMPTY_LEAF_NAME, LOG, CompositorNode, MissingDependencies, Node, ReaderNode
label_desc: Use image node_id 12 for calling the DependencyTree obj's underlying member method code with example usage: obj._get_unique_id_from_sorted_ids(sorted_ids, distances) and returns: result