class_docstr: Class that takes care of converting unspecified data blob
  (Dict or List[Dict]) into datapoints (List[Dict]).
  If some properties that are required by Template class are missing
  ('x', 'y') it will attempt to fill in the blanks.
class_docstr_tok: ["Class","that","takes","care","of","converting","unspecified","data","blob","(","Dict","or","List","[","Dict","]",")","into","datapoints","(","List","[","Dict","]",")",".","If","some","properties","that","are","required","by","Template","class","are","missing","(","'","x","'",",","'","y","'",")","it","will","attempt","to","fill","in","the","blanks","."]
code: def _infer_x_y(self):
      x = self.properties.get("x", None)
      y = self.properties.get("y", None)
  
      inferred_properties: Dict = {}
  
      # Infer x.
      if isinstance(x, str):
          inferred_properties["x"] = {}
          # If multiple y files, duplicate x for each file.
          if isinstance(y, dict):
              for file, fields in y.items():
                  # Duplicate x for each y.
                  if isinstance(fields, list):
                      inferred_properties["x"][file] = [x] * len(fields)
                  else:
                      inferred_properties["x"][file] = x
          # Otherwise use plot ID as file.
          else:
              inferred_properties["x"][self.plot_id] = x
  
      # Infer y.
      if y is None:
          inferred_properties["y"] = self._infer_y_from_data()
      # If y files not provided, use plot ID as file.
      elif not isinstance(y, dict):
          inferred_properties["y"] = {self.plot_id: y}
  
      return inferred_properties
  
imports: import os
  from typing import Any, Dict, Iterable, List, Optional, Tuple, Union
  from funcy import first, last
  from dvc.exceptions import DvcException
  from dvc.render import FIELD, FILENAME, INDEX, REVISION
  from .None import Converter
label_desc: Use image node_id 3 for calling the VegaConverter obj's underlying member method code with example usage: obj._infer_x_y() and returns: inferred_properties