code: def infer(cls, data):
      return cls(
          {name: infer_type(value) for name, value in data.items()}
      )
  
imports: from dataclasses import dataclass, field
  from functools import singledispatch
  from typing import Any, Dict, Type, Union
  import numpy
label_desc: Use image node_id 10 for calling the Schema obj's underlying member method code with example usage: obj.infer(cls, data) and returns: cls