code: def _generate_linear_t_pattern(
      _dequant_per_channel_pattern,
      dtype,
  ):
      assert dtype in [torch.float32, torch.bfloat16]
      t_pattern = CallFunction(
          aten.permute.default,
          _may_generate_pattern_with_dtype_convert(
              _dequant_per_channel_pattern,
              KeywordArg("autocast_wgt_dtype"),
              dtype == torch.bfloat16,
          ),
          KeywordArg("permute_axes"),
      )
      return t_pattern
  
imports: import copy
  import functools
  import itertools
  import math
  import operator
  from typing import Any, Tuple
  import torch
  from torch._dynamo.utils import counters
  from torch.fx.experimental.symbolic_shapes import has_free_symbols
  from ..lowering import lowerings, require_channels_last
  from ..pattern_matcher import Arg, CallFunction, filter_nodes, KeywordArg, ListOf, Match
  from ..utils import pad_listlike
  from .freezing_patterns import register_freezing_graph_pattern
  from .post_grad import register_lowering_pattern
label_desc: Use image node_id 3 for calling a global function with example usage: _generate_linear_t_pattern(_dequant_per_channel_pattern, dtype) and returns: t_pattern