code: def magic(major, minor):
      """Return the magic string for the given file format version.
  
      Parameters
      ----------
      major : int in [0, 255]
      minor : int in [0, 255]
  
      Returns
      -------
      magic : str
  
      Raises
      ------
      ValueError if the version cannot be formatted.
      """
      if major < 0 or major > 255:
          raise ValueError("major version must be 0 <= major < 256")
      if minor < 0 or minor > 255:
          raise ValueError("minor version must be 0 <= minor < 256")
      return MAGIC_PREFIX + bytes([major, minor])
  
imports: import io
  import os
  import pickle
  import warnings
  import numpy
  from numpy.lib._utils_impl import drop_metadata
label_desc: Use image node_id 2 for calling a global function with example usage: magic(major, minor) and returns: unknown