code: def read_json(
      source: str | Path | IOBase | bytes,
      *,
      infer_schema_length: int | None = N_INFER_DEFAULT,
      schema: SchemaDefinition | None = None,
      schema_overrides: SchemaDefinition | None = None,
  ) -> DataFrame:
      """
      Read into a DataFrame from a JSON file.
  
      Parameters
      ----------
      source
          Path to a file or a file-like object (by file-like object, we refer to objects
          that have a `read()` method, such as a file handler (e.g. via builtin `open`
          function) or `BytesIO`).
      infer_schema_length
          Infer the schema from the first `infer_schema_length` rows.
      schema : Sequence of str, (str,DataType) pairs, or a {str:DataType,} dict
          The DataFrame schema may be declared in several ways:
  
          * As a dict of {name:type} pairs; if type is None, it will be auto-inferred.
          * As a list of column names; in this case types are automatically inferred.
          * As a list of (name,type) pairs; this is equivalent to the dictionary form.
  
          If you supply a list of column names that does not match the names in the
          underlying data, the names given here will overwrite them. The number
          of names given in the schema should match the underlying data dimensions.
      schema_overrides : dict, default None
          Support type specification or override of one or more columns; note that
          any dtypes inferred from the schema param will be overridden.
          underlying data, the names given here will overwrite them.
  
      See Also
      --------
      read_ndjson
  
      """
      return pl.DataFrame._read_json(
          source,
          infer_schema_length=infer_schema_length,
          schema=schema,
          schema_overrides=schema_overrides,
      )
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  import polars._reexport
  from polars.datatypes import N_INFER_DEFAULT
label_desc: Use image node_id 1 for calling a global function with example usage: read_json(source) and returns: pl