class_docstr: Class representing a single file resource. There exist two subclasses:
  :class:`.InputResourceFile` and :class:`.JobResourceFile`.
class_docstr_tok: ["Class","representing","a","single","file","resource",".","There","exist","two","subclasses",":",":","class",":","`",".InputResourceFile","`","and",":","class",":","`",".JobResourceFile","`","."]
code: def _add_output_path(self, path: str) -> None:
      self._output_paths.add(path)
      source = self.source()
      if source is not None:
          source._external_outputs.add(self)
  
imports: import abc
  from typing import Optional, Set, cast, Union
  from .None import job
  from .exceptions import BatchException
label_desc: Use image node_id 5 for calling the ResourceFile obj's underlying member method code with example usage: obj._add_output_path(path) without return types