code: def test_use_unregistered_dataclass_raises(self):
      def f(a: MixupParams3):
          return 0
  
      with self.assertRaises(OSError):
          torch.jit.script(f)
  
imports: from dataclasses import dataclass, field, InitVar
  from hypothesis import given, settings, strategies
  from torch.testing._internal.jit_utils import JitTestCase
  from typing import List, Optional
  import sys
  import torch
  import unittest
  from enum import Enum
label_desc: Use image node_id 8 for calling the TestDataclasses obj's underlying member method code with example usage: obj.test_use_unregistered_dataclass_raises() and returns: int