code: def __init__(self, basePath="./", ext=".jpg"):
      # construct the file path
      self.path = "{base_path}/{rand}{ext}".format(
          base_path=basePath, rand=str(uuid.uuid4()), ext=ext
      )
  
imports: import uuid
  import os
label_desc: Use image node_id 1 to create a new TempFile object  with example: obj = TempFile(basePath, ext)