How do I get the graph using PassContext?

I tried searching about this and got to know that we can use tvm.build() which returns the graph but this has been depreciated.

  with tvm.build_config(dump_ir_pass=True):
      graph, lib, params = tvm.build(...)

Could you please tell me how to get the graph using PassContext similar to the tvm.build() function. Also it would be really helpful if you can point me the documentation of PassContext.

Hi, @kausthubtm Would you describe what graph is supposed to contain for the people like myself who are not familiar with old API?

Some references about PassContext: