def generate(job,<EOL>build_path: str,<EOL>from_image: str,<EOL>build_steps: Optional[List[str]] = None,<EOL>env_vars: Optional[List[Tuple[str, str]]] = None,<EOL>nvidia_bin: str = None,<EOL>set_lang_env: bool = True,<EOL>uid: int = None,<EOL>gid: int = None) -> bool:
rendered_dockerfile = dockerizer_generate(repo_path=build_path,<EOL>from_image=from_image,<EOL>build_steps=build_steps,<EOL>env_vars=env_vars,<EOL>nvidia_bin=nvidia_bin,<EOL>set_lang_env=set_lang_env,<EOL>uid=uid,<EOL>gid=gid)<EOL>if rendered_dockerfile:<EOL><INDENT>job.log_dockerfile(dockerfile=rendered_dockerfile)<EOL><DEDENT>return True<EOL>
Build necessary code for a job to run