code: def from_func(
      g: NativeFunctionsViewGroup, *, is_reverse: bool
  ) -> "FunctionalizationLambda":
      return FunctionalizationLambda(g, is_reverse)
  
imports: from dataclasses import dataclass
  from typing import Iterator, List, Optional, Sequence, Set, Tuple, Union
  from torchgen.model import BackendIndex, FunctionSchema, NativeFunction, NativeFunctionsGroup, NativeFunctionsViewGroup
  from .types_base import Binding, CType, Expr
  from torchgen.api import cpp, dispatcher, functionalization, native, structured, translate
label_desc: Use image node_id 4 for calling the FunctionalizationLambda obj's underlying member method code with example usage: obj.from_func(g) and returns: FunctionalizationLambda