code: def test_chunk_constant_script_ad(self):
      @torch.jit.script
      def func(x):
          x1, x2 = torch.chunk(x, 2)
          return (x1, x2)
  
      input = torch.rand(6, 10).requires_grad_()
      with disable_autodiff_subgraph_inlining():
          with enable_profiling_mode_for_profiling_tests():
              output = func(input, profile_and_replay=True)
              FileCheck().check_not("prim::DifferentiableGraph").run(
                  func.graph_for(input)
              )
  
imports: import os
  import sys
  import unittest
  from torch.testing._internal.common_utils import GRAPH_EXECUTOR, ProfilingMode, num_profiled_runs, enable_profiling_mode_for_profiling_tests
  from torch.testing._internal.common_jit import check_against_reference
  import torch
  from torch.testing._internal.jit_utils import JitTestCase, disable_autodiff_subgraph_inlining
  from torch.testing import FileCheck
  from typing import List, Tuple, Optional
label_desc: Use image node_id 3 for calling the TestAutodiffSubgraphSlicing obj's underlying member method code with example usage: obj.test_chunk_constant_script_ad() and returns: x1,  x2