class_docstr: A time-based amount of time, such as '34.5 seconds'.
class_docstr_tok: ["A","time-based","amount","of","time",",","such","as","'34.5","seconds","'","."]
code: def of_nanos(nanos: int):
      return Duration(
          get_gateway().jvm.java.time.Duration.ofNanos(nanos)
      )
  
imports: from pyflink.java_gateway import get_gateway
label_desc: Use image node_id 6 for calling the Duration obj's underlying member method code with example usage: obj.of_nanos(nanos) and returns: Duration