class_docstr: Shaped and sized specification of an array.
  
  Attributes:
    shape: Shape of the array.
    dtype: DType of the array.
class_docstr_tok: ["Shaped","and","sized","specification","of","an","array",".","Attributes",":","shape",":","Shape","of","the","array",".","dtype",":","DType","of","the","array","."]
code: def from_array(cls, array) -> "ArraySpec":
      return ArraySpec(array.shape, array.dtype)
  
imports: from collections.abc import Mapping, Sequence
  import dataclasses
  import functools
  import pprint
  from typing import Any, Callable, Optional, TypeVar, Union
  from haiku._src import base
  from haiku._src import data_structures
  from haiku._src import module
  from haiku._src import transform
  from haiku._src import utils
  import jax
  import jax.numpy
  import numpy
  import tabulate
label_desc: Use image node_id 2 for calling the ArraySpec obj's underlying member method code with example usage: obj.from_array(cls, array) and returns: ArraySpec