class_docstr: Abstract interface for data aggregation functionality for plotly figures.
class_docstr_tok: ["Abstract","interface","for","data","aggregation","functionality","for","plotly","figures","."]
docstr: Query the internal ``_hf_data`` attribute and returns a match based on
  ``uid``.
  
  Parameters
  ----------
  trace : dict
      The trace where we want to find a match for.
  
  Returns
  -------
  Optional[dict]
      The ``hf_data``-trace dict if a match is found, else ``None``.
docstr_tok: ["Query","the","internal","``","_hf_data","``","attribute","and","returns","a","match","based","on","``","uid","``",".","Parameters","--","--","--","--","--","trace",":","dict","The","trace","where","we","want","to","find","a","match","for",".","Returns","--","--","--","-","Optional","[","dict","]","The","``","hf_data","``","-trace","dict","if","a","match","is","found",",","else","``","None","``","."]
code: def _query_hf_data(self, trace: dict) -> Optional[dict]:
      """Query the internal ``_hf_data`` attribute and returns a match based on
      ``uid``.
  
      Parameters
      ----------
      trace : dict
          The trace where we want to find a match for.
  
      Returns
      -------
      Optional[dict]
          The ``hf_data``-trace dict if a match is found, else ``None``.
  
      """
      uid = trace["uid"]
      hf_trace_data = self._hf_data.get(uid)
      if hf_trace_data is None:
          trace_props = {
              k: trace[k]
              for k in set(trace.keys()).difference({"x", "y"})
          }
          self._print(f"[W] trace with {trace_props} not found")
      return hf_trace_data
  
imports: from __future__ import annotations
  import itertools
  import re
  from abc import ABC
  from collections import namedtuple
  from copy import copy
  from typing import Dict, Iterable, List, Optional, Tuple, Union
  from uuid import uuid4
  import dash
  import numpy
  import pandas
  import plotly.graph_objects
  from pandas.io.json._normalize import nested_to_record
  from plotly.basedatatypes import BaseFigure, BaseTraceType
  from ..aggregation import AbstractAggregator, MedDiffGapHandler, MinMaxLTTB
  from ..aggregation.aggregation_interface import DataPointSelector
  from ..aggregation.gap_handler_interface import AbstractGapHandler
  from ..aggregation.plotly_aggregator_parser import PlotlyAggregatorParser
  from .utils import round_number_str, round_td_str
label_desc: Use image node_id 3 for calling the AbstractFigureAggregator obj's underlying member method code with example usage: obj._query_hf_data(trace) and returns: hf_trace_data