code: def create(client, output_file, revision, paths):
      
      graph = Graph(client)
      outputs = graph.build(paths=paths, revision=revision)
  
      output_file.write(
          yaml.dump(
              ascwl(
                  graph.ascwl(outputs=outputs),
                  filter=lambda _, x: x is not None and x != [],
                  basedir=os.path.dirname(getattr(output_file, 'name', '.')) or
                  '.',
              ),
              default_flow_style=False
          )
      )
docs: Create a workflow description for a file.