class_docstr: Wandb class for 3D point clouds.
  
  Arguments:
      data_or_path: (numpy array, string, io)
          Object3D can be initialized from a file or a numpy array.
  
          You can pass a path to a file or an io object and a file_type
          which must be one of SUPPORTED_TYPES
  
  The shape of the numpy array must be one of either:
  ```
  [[x y z],       ...] nx3
  [[x y z c],     ...] nx4 where c is a category with supported range [1, 14]
  [[x y z r g b], ...] nx6 where is rgb is color
  ```
docstr: Initializes Object3D from a file or stream.
  
  Arguments:
      data_or_path (Union["TextIO", str]): A path to a file or a `TextIO` stream.
      file_type (str): Specifies the data format passed to `data_or_path`. Required when `data_or_path` is a
          `TextIO` stream. This parameter is ignored if a file path is provided. The type is taken from the file extension.
docstr_tok: ["Initializes","Object3D","from","a","file","or","stream",".","Arguments",":","data_or_path","(","Union","[","``","TextIO","''",",","str","]",")",":","A","path","to","a","file","or","a","`","TextIO","`","stream",".","file_type","(","str",")",":","Specifies","the","data","format","passed","to","`","data_or_path","`",".","Required","when","`","data_or_path","`","is","a","`","TextIO","`","stream",".","This","parameter","is","ignored","if","a","file","path","is","provided",".","The","type","is","taken","from","the","file","extension","."]
code: def from_file(
      cls,
      data_or_path: Union["TextIO", str],
      file_type: Optional["FileFormat3D"] = None,
  ) -> "Object3D":
      """Initializes Object3D from a file or stream.
  
      Arguments:
          data_or_path (Union["TextIO", str]): A path to a file or a `TextIO` stream.
          file_type (str): Specifies the data format passed to `data_or_path`. Required when `data_or_path` is a
              `TextIO` stream. This parameter is ignored if a file path is provided. The type is taken from the file extension.
      """
      # if file_type is not None and file_type not in cls.SUPPORTED_TYPES:
      #     raise ValueError(
      #         f"Unsupported file type: {file_type}. Supported types are: {cls.SUPPORTED_TYPES}"
      #     )
      return cls(data_or_path, file_type=file_type)
  
imports: import codecs
  import json
  import os
  import sys
  from typing import TYPE_CHECKING, ClassVar, Optional, Sequence, Set, TextIO, Tuple, Type, Union
  import wandb
  from wandb import util
  from wandb.sdk.lib import runid
  from wandb.sdk.lib.paths import LogicalPath
  from .None import _dtypes
  from ._private import MEDIA_TMP
  from .base_types.media import BatchableMedia
label_desc: Use image node_id 2 for calling the Object3D obj's underlying member method code with example usage: obj.from_file(cls, data_or_path, file_type) and returns: cls