class_docstr: Turn a function into a Module by keeping the vars it uses.
class_docstr_tok: ["Turn","a","function","into","a","Module","by","keeping","the","vars","it","uses","."]
docstr: Return the VarCollection of the variables used by the function.
docstr_tok: ["Return","the","VarCollection","of","the","variables","used","by","the","function","."]
code: def vars(self, scope: str = "") -> VarCollection:
      """Return the VarCollection of the variables used by the function."""
      if scope:
          return VarCollection(
              (scope + k, v) for k, v in self.vc.items()
          )
      return VarCollection(self.vc)
  
imports: from collections import namedtuple
  from typing import Optional, List, Union, Callable, Tuple
  import jax
  import jax.numpy
  import numpy
  from objax.typing import JaxArray
  from objax.util import class_name, override_args_kwargs, positional_args_names, repr_function
  from objax.variable import BaseVar, RandomState, VarCollection
label_desc: Use image node_id 3 for calling the Function obj's underlying member method code with example usage: obj.vars(scope) and returns: VarCollection, VarCollection