class_docstr: Dockerfile class.
  
  Dockerfile generates a default dockerfile if it does not exist.
  
  Attributes:
    filename: dockerfile filename.
    setup_py_filename: setup.py filename that defines the pipeline PIP package.
docstr: Generate a dockerfile with the contents.
docstr_tok: ["Generate","a","dockerfile","with","the","contents","."]
code: def _generate_default(self, contents):
      """Generate a dockerfile with the contents."""
      with open(self.filename, "w+") as f:
          f.write(contents)
  
imports: import os
  from typing import Optional
  import click
  from tfx import version
  from tfx.tools.cli.container_builder import labels
label_desc: Use image node_id 2 for calling the Dockerfile obj's underlying member method code with example usage: obj._generate_default(contents) without return types