code: def get_user_metadata(df_user: pd.DataFrame = None) -> pd.DataFrame:
      """
      Return MovieLens 100K user metadata as a DataFrame.
  
      DataFrame returned has the following column order:
  
      .. code-block:: python
  
          [
              'age', 'gender', 'occupation_administrator', 'occupation_artist'
              'occupation_doctor', 'occupation_educator', 'occupation_engineer'
              'occupation_entertainment', 'occupation_executive'
              'occupation_healthcare', 'occupation_homemaker'
              'occupation_lawyer', 'occupation_librarian', 'occupation_marketing'
              'occupation_none', 'occupation_other', 'occupation_programmer'
              'occupation_retired', 'occupation_salesman', 'occupation_scientist'
              'occupation_student', 'occupation_technician', 'occupation_writer',
          ]
  
      See the MovieLens 100K README for additional information on the dataset:
      https://files.grouplens.org/datasets/movielens/ml-100k-README.txt
  
      Parameters
      ----------
      df_user: pd.DataFrame
          DataFrame of MovieLens 100K ``u.user`` containing columns of user
          metadata. If ``None``, will automatically read the output of ``read_movielens_df_user()``
  
      Returns
      -------
      metadata_df: pd.DataFrame
  
      """
      if df_user is None:
          df_user = read_movielens_df_user()
  
      # format user occupation
      df_user_occupation = df_user[["occupation"]].copy()
      df_occupation = pd.get_dummies(
          df_user_occupation.occupation, prefix="occupation"
      )
      df_occupation = df_occupation.sort_index(axis=1)
  
      # format user gender
      df_user["gender"] = df_user.gender.replace({"F": 1, "M": 0})
  
      # format final metadata structure
      user_metadata_df = df_user[["age", "gender"]].merge(
          df_occupation, left_index=True, right_index=True
      )
      return user_metadata_df
  
file_path: collie/collie/movielens/get_data.py
imports: import os
  from pathlib import Path
  import re
  import zipfile
  import pandas
  import requests
  from collie.config import DATA_PATH
label_desc: Use image node_id 8 for calling a global function with example usage: get_user_metadata(df_user) and returns: user_metadata_df