code: def create_script_class(obj):
      """
      Create and return a RecursiveScriptClass instance from a Python object.
  
      Arguments:
          obj: A Python object.
      """
      qualified_class_name = _jit_internal._qualified_name(type(obj))
      rcb = _jit_internal.createResolutionCallbackForClassMethods(
          type(obj)
      )
      # Script the type of obj if it hasn't already been scripted.
      _compile_and_register_class(type(obj), rcb, qualified_class_name)
      class_ty = _python_cu.get_class(qualified_class_name)
      # Create an empty torch._C.ScriptObject with the scripted type.
      cpp_object = torch._C._create_object_with_type(class_ty)
      # Copy all of the attributes over to the torch._C.ScriptObject.
      for name, value in obj.__dict__.items():
          cpp_object.setattr(name, value)
  
      # Wrap the torch._C.ScriptObject in a RecursiveScriptClass instance.
      return wrap_cpp_class(cpp_object)
  
imports: import collections
  import functools
  import inspect
  import sys
  import textwrap
  import types
  import warnings
  from typing import Dict, List, Set, Type
  import torch
  import torch._jit_internal
  from torch._sources import fake_range
  from torch.jit._builtins import _find_builtin
  from torch.jit._check import AttributeTypeIsSupportedChecker
  from torch.jit._state import _add_script_class, _get_script_class, _python_cu
  from torch.jit.frontend import get_class_properties, get_default_args, get_jit_class_def, get_jit_def
  from torch.nn import Module
label_desc: Use image node_id 12 for calling a global function with example usage: create_script_class(obj) and returns: wrap_cpp_class