code: def legacy_xception(pretrained=False, **kwargs) -> Xception:
      return _xception(
          "legacy_xception", pretrained=pretrained, **kwargs
      )
  
imports: import torch.jit
  import torch.nn
  import torch.nn.functional
  from timm.layers import create_classifier
  from ._builder import build_model_with_cfg
  from ._registry import register_model, generate_default_cfgs, register_model_deprecations
label_desc: Use image node_id 2 for calling a global function with example usage: legacy_xception(pretrained) and returns: _xception