

def __init__(self, path=None, parsed_params=None, a_file=True, yaml_dict_tpl=None):
    ExceptionCollector.start()
    self.a_file = a_file
    self.input_path = None
    self.path = None
    self.tpl = None
    if path:
        self.input_path = path
        self.path = self._get_path(path)
        if self.path:
            self.tpl = YAML_LOADER(self.path, self.a_file)
        if yaml_dict_tpl:
            msg = _('Both path and yaml_dict_tpl arguments were provided. Using path and ignoring yaml_dict_tpl.')
            log.info(path)
            print(msg)
    elif yaml_dict_tpl:
        self.tpl = yaml_dict_tpl
    else:
        ExceptionCollector.appendException(ValueError(_('No path or yaml_dict_tpl was provided. There is nothing to parse.')))
    if self.tpl:
        self.parsed_params = parsed_params
        self._validate_field()
        self.version = self._tpl_version()
        self.relationship_types = self._tpl_relationship_types()
        self.description = self._tpl_description()
        self.topology_template = self._topology_template()
        if self.topology_template.tpl:
            self.inputs = self._inputs()
            self.relationship_templates = self._relationship_templates()
            self.nodetemplates = self._nodetemplates()
            self.outputs = self._outputs()
            self.graph = ToscaGraph(self.nodetemplates)
    ExceptionCollector.stop()
    self.verify_template()

dataset/ETHPy150Open openstack/tosca-parser/toscaparser/tosca_template.py ToscaTemplate.__init__/VarMisuse@117/185 `msg`->`path`