class_docstr: Class representing a result from a Python job.
  
  Examples
  --------
  
  Add two numbers and then square the result:
  
  .. code-block:: python
  
      def add(x, y):
          return x + y
  
      def square(x):
          return x ** 2
  
  
      b = Batch()
      j = b.new_python_job(name='add')
      result = j.call(add, 3, 2)
      result = j.call(square, result)
      b.write_output(result.as_str(), 'output/squared.txt')
      b.run()
  
  Notes
  -----
  All :class:`.PythonResult` are temporary Python objects and must be written
  to a permanent location using :meth:`.Batch.write_output` if the output needs
  to be saved. In most cases, you'll want to convert the :class:`.PythonResult`
  to a :class:`.JobResourceFile` in a human-readable format.
class_docstr_tok: ["Class","representing","a","result","from","a","Python","job",".","Examples","--","--","--","--","Add","two","numbers","and","then","square","the","result",":","..","code-block",":",":","python","def","add","(","x",",","y",")",":","return","x","+","y","def","square","(","x",")",":","return","x","*","*","2","b","=","Batch","(",")","j","=","b.new_python_job","(","name='add","'",")","result","=","j.call","(","add",",","3",",","2",")","result","=","j.call","(","square",",","result",")","b.write_output","(","result.as_str","(",")",",","'output\/squared.txt","'",")","b.run","(",")","Notes","--","--","-","All",":","class",":","`",".PythonResult","`","are","temporary","Python","objects","and","must","be","written","to","a","permanent","location","using",":","meth",":","`",".Batch.write_output","`","if","the","output","needs","to","be","saved",".","In","most","cases",",","you","'ll","want","to","convert","the",":","class",":","`",".PythonResult","`","to","a",":","class",":","`",".JobResourceFile","`","in","a","human-readable","format","."]
code: def __str__(self):
      return f"{self._uid}"
  
imports: import abc
  from typing import Optional, Set, cast, Union
  from .None import job
  from .exceptions import BatchException
label_desc: Use image node_id 11 for calling the PythonResult obj's underlying member method code with example usage: obj.__str__() and returns: self