code: def sg_symbol_from_int_number(int_number, hexagonal=True):
      
      syms = []
      for n, v in get_symm_data("space_group_encoding").items():
          if v["int_number"] == int_number:
              syms.append(n)
      if len(syms) == 0:
          raise ValueError("Invalid international number!")
      if len(syms) == 2:
          if hexagonal:
              syms = list(filter(lambda s: s.endswith("H"), syms))
          else:
              syms = list(filter(lambda s: not s.endswith("H"), syms))
      return syms.pop()
docs: Obtains a SpaceGroup name from its international number.
  
      Args:
          int_number (int): International number.
          hexagonal (bool): For rhombohedral groups, whether to return the
              hexagonal setting (default) or rhombohedral setting.
  
      Returns:
          (str) Spacegroup symbol